It does .. so instead of using your single string buffer, it allocates a new one, concats the text, returns the string to your append function and goes on. Now you should see why it is wasteful.
-- Robert ----- Original Message ----- From: "Erik Price" <[EMAIL PROTECTED]> Newsgroups: gmane.comp.jakarta.commons.user Sent: Wednesday, February 19, 2003 10:54 PM Subject: Re: StringBuffer pools and why not to use them > > > Chris Duprat wrote: > > Well said, > > > > First allocation : 500 is too big > > Second Concatenation : it take more time to concatenate string than append > > them! > > I thought that concatenation used StringBuffering under the covers. > > > > Erik --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
