Re: Faster way of making long string?



Hello

J French wrote:
This is just delegating the inefficiency to TStringList

as You see, Ian made a test and shows that the stringlist method is running at double speed as his approach. I would define "inefficiency" a bit different.
At the end of the discussion comes the question about the code. Should the code be "fast" or "maintainable". Since we have very fast computers, and a lot of ram, I like it to have maintainable code, where ever it is possible.
If You compare the solution with a the stringlist and the solution chris suggest, I would choose, nearly in all cases, the stringlist alternative. It might be neccessary optimize on speed if zillions of string must be added, but until now I allways worke with stringlist.
Best regards
Ekkehard
.