Michael Van Canneyt wrote:

On Fri, 10 Jun 2005, Joost van der Sluis wrote:


Hi all,

I don't know if rtl-optimilisation patches have a large priority, but
nevertheless this patch improves the speed of the sysutils.uppercase and
lowercase functions.


I fail to see how changing a while loop to a for loop improves speed ?
I could understand if you'd use a PChar and use pointer math, but not this ?



BTW, in the snippet below, Length(S) is called once or at each iteration?

for i := Length(S) downto 1 do

Luiz

_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to