Path: csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!news-transit.tcx.org.uk!news.albasani.net!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: replace extended characters Date: Fri, 11 Feb 2011 17:39:29 -0500 Organization: albasani.net Lines: 27 Message-ID: References: <15bd3363-c781-487b-98d5-2243eff7cc8f@24g2000yqa.googlegroups.com> <4d54a21c$0$23755$14726298@news.sunsite.dk> <1c68bb17-af5a-48c6-9fcf-8b765b088b1f@w21g2000yqm.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.albasani.net +fupo9Qw/36hqFeXA5OIsjuvwCCinlQ1Y1kGfAZvT23JQUarcc5wkXVpYrFLehVdXfRR+haP+0mKRfGBBDn39Q== NNTP-Posting-Date: Fri, 11 Feb 2011 22:38:41 +0000 (UTC) In-Reply-To: <1c68bb17-af5a-48c6-9fcf-8b765b088b1f@w21g2000yqm.googlegroups.com> Cancel-Lock: sha1:/LQkHQSZzQzK4GKt3ZJjiHG49OE= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 Injection-Info: news.albasani.net; logging-data="gOy7hsQi1rPy1LkxLgO/wy8/N/GrDDAmxZTI6Knxuc4MuFNEgOYXr24OVx+sCXMk+50lWkf9ZX3q4VAXld4hcz2j1oOBb2lNyrMcnxoZvllOpbuKk/cppsgjMdqyZR6Y"; mail-complaints-to="abuse@albasani.net" Xref: csiph.com comp.lang.java.programmer:25562 Arne Vajhøj wrote: >> Good design is not premature optimization. Paul Cager wrote: > That's true, but in this case I'd like to quote Rob Pike: "Bottlenecks > occur in surprising places, so don't try to second guess and put in a > speed hack until you have proven that's where the bottleneck is." > > Where would you guess the program will be spending most of its time - > manipulating bits in the CPU or waiting for disk IO? It's too early to ask that question. It suffices to come up with the reasonably performant algorithm as suggested upthread. No one so far has engaged in premature optimization here. -- Lew Ceci n'est pas une fenêtre. .___________. |###] | [###| |##/ | *\##| |#/ * | \#| |#----|----#| || | * || |o * | o| |_____|_____| |===========|