[Mono-devel-list] [PATCH] StringBuilder Speedup
Miguel de Icaza
miguel at ximian.com
Sun Jan 16 11:09:21 EST 2005
Hello,
> Doing this patch will make the behavior as compared to MSFT a bit
> different for some pendantic test cases (mostly in terms of the capacity
> property). However, I think this is a reasonable difference between two
> impls of the framework.
>
> If nobody objects, I will check this in.
I do object, there is no reason to change the public interface to the
class for an optimization.
You could write your optimization *and* still emulate the original
behavior.
I have another question: what is the behavior in this case:
new StringBuilder ("")
It is also a common pattern; Notice that we should also take care of
these cases (from the public interface perspective):
new StringBuilder ()
and than:
new StringBuilder ("Init string")
Miguel.
More information about the Mono-devel-list
mailing list