[fpc-pascal] Why is Random(255) some 529x slower compared to Delphi 7?

Reimar Grabowski reimgrab at web.de
Fri Dec 9 13:55:54 CET 2011


On Fri, 09 Dec 2011 07:27:46 +0100
Jürgen Hestermann <juergen.hestermann at gmx.de> wrote:

> 
> 
> 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.

Not by me, but the FPC developers. I am not interested in Delphi/TP compatability and never was, so I don't care if Delphi/TP code works or not, but I care if code written exclusively in and for FPC continues to work as it did. I think that Delphi is a burden for FPC and Lazarus, but the developers have other opinions, so be it.
I don't need a change at all. It may be irritating for a Delphi developer that his code runs slower, but profiling is no secret art and changing a random implementations to a less 'good' but faster one is a matter of minutes.
Like people already said, lots of talk about a 'problem' that 10 years noone has seen as one.

Another 2 cents
R.



More information about the fpc-pascal mailing list