[fpc-devel] patch for ReadInteger in sysformt.inc

Florian Klaempfl florian at freepascal.org
Thu Sep 11 15:43:53 CEST 2008


Markus Beth schrieb:
> Hi,
> 
> latest profiling of one of our FPC applications showed ReadInteger (in
> rtl/objpas/sysutils/sysformt.inc) to be a performance bottleneck. Using
> Pos(Fmt[chpos],'1234567890')<>0 to check if Fmt[chpos] is a digit is
> somewhat time consuming. I replaced it with two char comparisons with
> '0' and '9'.
> The rest of the patch only unifies the casing of the variable chpos.

Thanks! Applied.



More information about the fpc-devel mailing list