[fpc-devel] Patch to speed up Uppercase/Lowercase functions
Michael Van Canneyt
michael at freepascal.org
Sat Jun 11 19:53:29 CEST 2005
On Sat, 11 Jun 2005, Daniƫl Mantione wrote:
>
>
> Op Sat, 11 Jun 2005, schreef Michael Van Canneyt:
>
> > That is why I use pchar and one uniquestring;
> > It prevents all these automated uniquestring calls.
>
> Isn't it a better idea to build a new string, i.e. we setlength result and
> copy characters either modified or unmodified? That'll save an unnecessary
> copy of the string.
The Delphi routine does this, but when compiled with FPC, it runs slower.
Michael.
More information about the fpc-devel
mailing list