Path: csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Jan Burse Newsgroups: comp.lang.java.programmer Subject: Re: FastCat 'performance' Date: Wed, 27 Feb 2013 19:31:43 +0100 Organization: albasani.net Lines: 25 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net xaJ2JajwnFZkyoFBkUvs954kPsrBBgkA5IapK78X+dm7LXe/9Xh0vNn4LjnyEIqmG38YxyFiMG/mOvQ6uIqU3CP/rQhpVZlezDAV51PVR33gpQ+fo21gC3FwIIdLNBfl NNTP-Posting-Date: Wed, 27 Feb 2013 18:31:44 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="jmyd14dNOTMPzkN0sAPm5asUq0m3oh0BnybM4lXpCXLGjt8qdR7cN6SUuilB/JExUtguP2koGs9TNA6vs6rsHDowAuSTJL937Z1uiZeQT89mFjKk70tRNPf6eGDY+Gly"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0 SeaMonkey/2.16 In-Reply-To: Cancel-Lock: sha1:crV93iuUuTNjrCtbogLsQ9RisDs= Xref: csiph.com comp.lang.java.programmer:22584 markspace schrieb: > Good job actually sussing this out. You did far more work with a > questionable library than I was willing to. Well it would be of interest to see the test programs for all the different classes. FastCat has definitively a problem here: return new String( buffer ); // Would like // some way to just hand buffer over to // String to avoid copy. https://wush.net/websvn/mindprod/filedetails.php?repname=mindprod&path=%2Fcom%2Fmindprod%2Ffastcat%2FFastCat.java But it also depends what the other test programs do, and whether the result is really comparable. Does the test program for StringBuilder call toString()? I guess without calling toString() the test programs are not comparable, since the use case would differ. Bye Bye