On 10/21/06, Charles Oliver Nutter <Charles.O.Nutter / sun.com> wrote:
> mathew wrote:
> > Yes, it becomes cheaper to turn a String into a StringBuffer, use
> > append, and convert it back, than to do a simple String + operation.
> > Which is surprising to many, so much so that there are lots of
> > articles for Java developers trying to explain it. e.g.
> > <URL:http://www.javaworld.com/javaworld/jw-03-2000/jw-0324-javaperf.html>
>
> This is not true.

Maybe not any more if you are using the latest Java, but the point
still stands about unintended consequences of making all strings
immutable.

Have the horrible performance issues with array setup been fixed too,
by the way?


mathew
-- 
<URL:http://www.pobox.com/~meta/>