[Mono-devel-list] StringBuilder patch

Torstensson, Patrik patrik.torstensson at intel.com
Tue Jan 13 17:40:35 EST 2004


>The real issue is when you create long lasting strings. Lets say you
>create 10 k strings each with a length of 17 bytes. If the buffer is 32
>bytes, you end up wasting 150 kb.

That's true but it's not a common case, if have tested a lot of
different programs and we handle most of the cases.

>In the MCS tokenizer, for large programs such as corlib, we could end
up
>taking a megabyte or more extra memory and holding it.

MCS uses less memory for corlib than before with the new StringBuilder,
that due to that you example is not a common case.

Cheers,
 Patrik



More information about the Mono-devel-list mailing list