[fpc-pascal] Re: Why is Random(255) some 529x slower compared to Delphi7?

Graeme Geldenhuys graemeg.lists at gmail.com
Thu Dec 8 19:50:21 CET 2011


On 8 December 2011 18:41, Florian Klaempfl  wrote:
>
> And? The conclusion is what we concluded years ago: be as delphi
> compatible as possible else people start to cry soon or later. The funny
> thing is only that this time the people cry who didn't draw this
> conclusion yet.

I'll be the first to admit, I think most of this "delphi
compatibility" is crap. But there is a BIG difference between being
compatible, and being totally unusable. Clearly many here have listed
that they use Random in a recursion function, and in such a case the
HUGE speed penalty makes the current Random() implementation
unsuitable and unusable.

Will an implementation like Waldo Kitty suggested be a suitable
compromise? If so, I'll go ahead and create a patch.


-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net



More information about the fpc-pascal mailing list