[fpc-pascal] fast text processing

Vincent Snijders vsnijders at quicknet.nl
Wed Oct 31 15:38:27 CET 2007


Florian Klaempfl schreef:
> Vincent Snijders schrieb:
>> Jeff Pohlmeyer schreef:
>>           s[i]:=#0;
>>           SetLength(s,StrLen(@s[1]));
> 
> Why not SetLength(s,i)? StrLen is _very_ expensive. I don't see a way
> how another #0 can be before.

That is right, I am working on a version which does not do that anymore.

Vincent



More information about the fpc-pascal mailing list