[fpc-pascal] fast text processing

Daniël Mantione daniel.mantione at freepascal.org
Wed Oct 31 23:51:07 CET 2007



Op Wed, 31 Oct 2007, schreef Vincent Snijders:

> Florian Klaempfl schreef:
> > Vincent Snijders schrieb:
> > 
> > Why not SetLength(s,i)? StrLen is _very_ expensive. I don't see a way
> > how another #0 can be before.
> 
> No more strlen:
> http://www.hu.freepascal.org/fpcircbot/cgipastebin?msgid=1432

One more possible speedup: Why are you using strlower and strlcomp instead 
of lowercase/pos? The latter ones are probably faster and they don't care 
of code pages which are not relevant in this example.

Daniël


More information about the fpc-pascal mailing list