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

Uberto Barbini uberto at ubiland.net
Sun Jun 12 11:58:24 CEST 2005


> >That is why I use pchar and one uniquestring;
> >It prevents all these automated uniquestring calls.
>
> Why call it when it might not be necessary??
>
> My point is that you can make the function MUCH faster for the case
> where the function doesn't modify the string by not calling
> UniqueString at all.

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.

Bye Uberto

ps. is there a way to see the assembly producted by a FPC function?




More information about the fpc-devel mailing list