[fpc-devel] Patch to speed up Uppercase/Lowercase functions
daniel at deadlock.et.tudelft.nl
Sat Jun 11 09:07:26 CEST 2005
Op Fri, 10 Jun 2005, schreef Florian Klaempfl:
> Joost van der Sluis wrote:
> > Hi all,
> > I don't know if rtl-optimilisation patches have a large priority,
> It depends if someone does it ;)
> > but
> > nevertheless this patch improves the speed of the sysutils.uppercase and
> > lowercase functions.
> What about creating a table which does direct mapping? It's a lot faster.
It would be faster, but it would require two 256-byte tables, which'll
help make people complain about code size even more. I would do it in an
inner loop, but upper/lower case conversions are seldomly called in an
inner loop. It also does some cache trashing, which is an often ignored
speed issue in programming.
More information about the fpc-devel