I rewrote the ReadPoText() procedure to use Strings instead of PChars.
To me it looks as if handling Pascal type strings in a Pascal type mannor is faster then handling the enire data as a PChar.
In ReadPOText(s: String) the string is typecasted to a PChar and then there is much pointer-calculation to determine line-ending etc.
This overhead is redundant once we treat the data as a stringlist.
Is there a cross-platform alternative to "GetTickCount"? I had to comment them out what testing on Linux.
I'll take it out when I am happy with the testing code.
It was just crude way for me to see if I could get any speed improvement.
If I'ld have done it on Linux I simply would have used Now().
The container speed was also a surprise for me. I guess the reason is that there are only few thousand items. The speed differences become relevant only when there is much more data.
May very well be.
For the time being I leave it as is.
I can test all lazaruside.xx.po files in a matter of seconds on my ancient system.
Bart