[fpc-devel] Patch to speed up Uppercase/Lowercase functions

Uberto Barbini uberto at ubiland.net
Sun Jun 12 13:11:08 CEST 2005

> > If I understood well, with modern processor an unpredicatable branch
> > (i.e. one with similar probability) is much more time-consuming that an
> > unnecessary function call.
> Yes, but the call needs to do memory allocation and a string copy, so it
> is not just the call.

I thought that UniqueString() goal was exactly to avoid the string copy...

> > ps. is there a way to see the assembly producted by a FPC function?
> Sure. Depending on your prefered asm style:
> fpc -Anasmelf -a -s filename.pas
> fpc -Agas -a -s filename.pas

I wonder if anyone has checked why Kylix version is faster comparing the 
assembler code.

I read the thread but I haven't studied well! ;)

Bye Uberto

More information about the fpc-devel mailing list