A
Andreas Leitgeb
Roedy Green said:My application, expanding macros for my website ran about 10% faster
when I optimised StringBuilders to use the proper size. I do more
than just concatenate, so the concatenate was actually faster than
that. I forget now the additional speed for the FastCat wrinkle. The
main thing is it does garbage collection less often. It is much
easier to get an accurate fastcat estimate, and the penalty is less
for being off.
I think I missed your point, then. I thought your proposal was merely
to adopt FastCat's varargs-append into standard StringBuilder, but now
it seems you're mainly comparing FastCat's different internal strategy,
instead of just the particular varargs-append().