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

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to