potential speed improvement for repeated string concatenation
0ffh
spam at frankhirsch.net
Tue Jul 24 13:55:52 PDT 2007
downs wrote:
> [...]
> To my surprise, this more than doubled the speed of that code. So if you
> have some block of code that does lots of repeated string concats, you
> might want to give this a try.
I suppose what you're effectively doing is avoid memory reallocation,
which is rather expensive, and therefore a good thing to avoid... :)
Regards, Frank
More information about the Digitalmars-d
mailing list