[fpc-pascal] Why is Random(255) some 529x slower compared to Delphi 7?
Florian Klaempfl
florian at freepascal.org
Fri Dec 9 08:47:44 CET 2011
Am 09.12.2011 07:27, schrieb Jürgen Hestermann:
>
>
> Reimar Grabowski schrieb:
>> The parameter should default to FALSE to not break existing code
>> relying on FPCs random function
> And what about existing code coming from Delphi/Turbo Pascal? This was a
> strong argument in the past for doing even crap coding.
As said before, this came only up because for every difference somebody
popped up and cried. When random was implemented using MT, we didn't
learn this lesson.
> Just imagine that
> divisions suddenly need 500 times the time because the last digit was
> inaccurate or so.
According to measurements of me and other peoples, random is only 7-10
times slower (depending on the CPU).
More information about the fpc-pascal
mailing list