Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.programmer Subject: Re: StringBuilder Date: Mon, 19 Sep 2011 09:45:56 -0700 Organization: Canadian Mind Products Lines: 20 Message-ID: References: <96f358c8-a024-40db-b60b-300186c2f813@o10g2000vby.googlegroups.com> Reply-To: Roedy Green NNTP-Posting-Host: RCd/Ul4tyxGUBII8WGwa5g.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 6.00/32.1186 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:8155 On Sat, 17 Sep 2011 22:44:59 -0700, Peter Duniho wrote, quoted or indirectly quoted someone who said : >In .NET, there is also a String and StringBuilder class pair, and >StringBuilder One thing that works against a Java efficient implementation is that the char array theoretically remains accessible even after toString, even though it is rarely used. The .NET may have avoided that, which would have made the optimisation more attractive. I did look into how this works, but some time ago probably around 1.4.. They may have improved the implementation. -- Roedy Green Canadian Mind Products http://mindprod.com It is a lot easier to combine things later that have been too finely categorised than to split things later whose are categories are too coarse.