Re: StringBuilder Extension: IsQuotedBy
Sébastien Lorion <[email protected]> Fri, 15 Feb 2008 10:11:09 -0500
| Newsgroups | gmane.comp.windows.devel.dotnet.clr |
|---|---|
| Message-ID | <[email protected]> |
On 2/15/08, Frans Bouma <[email protected]> wrote: > That initial size is to prevent memory fragmentation during memcpy > actions when the buffer needs to be resized. I don't see a relevance with > object creation speed and that parameter. I think the main reason the string > builder is there is to avoid having lots of objects to collect. I file that > kind of action under 'object destruction', not 'creation', though if you see > that as one action (as creating an object means it also has to be collected at > some point), you have a point. > > FB Yes, I see that as one action because one cannot go without the other. But sure, StringBuilder has more than one benefits as you and others pointed out. Sébastien =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com