Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Gene Wirchenko Newsgroups: comp.lang.java.programmer Subject: Re: StringBuilder Difficulties Date: Mon, 11 Jul 2011 07:54:35 -0700 Organization: A noiseless patient Spider Lines: 27 Message-ID: References: <97otvfFdmmU1@mid.individual.net> <97ublnFag8U4@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: mx04.eternal-september.org; posting-host="7Qrvczazr82YckO5XW8Vtw"; logging-data="18210"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19xkKuvZb5DuKvqPUkoKtrbG1DvQutSzp4=" X-Newsreader: Forte Agent 4.2/32.1118 Cancel-Lock: sha1:CvyuCa04sjhLbtxEvpSl+DAnmD4= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6070 On 10 Jul 2011 19:08:40 GMT, blmblm@myrealbox.com wrote: >In article , >Gene Wirchenko wrote: [snip] >> Micro-optimisation is a nasty sin. > >Yeah, yeah .... I guess it just seems strange to me that you went to >all the trouble of writing code to benchmark various approaches -- >suggesting that sometimes you *do* engage in micro-optimization -- >but are resistant to trying one more approach that (in my tests >anyway) sometimes reduced execution time by almost 50%. Just sayin', >"whatever", .... :-)? It should be obvious to you why someone might do that. The part that I was benchmarking is critical to my program. It is repeatedly used since it is called for every non-newline character in a file. Initialising a set of characters does not happen nearly so often. Sincerely, Gene Wirchenko