Path: csiph.com!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: So I did "FizzBuzz", in Java! Date: Mon, 18 Jul 2016 19:51:47 -0400 Organization: Aioe.org NNTP Server Lines: 29 Message-ID: References: <1933e39b-6363-4174-8392-602415a61799@googlegroups.com> NNTP-Posting-Host: 7SK6yTFfqwlIPNBLl3l7Qg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:34965 On 7/18/2016 5:00 PM, Eric Douglas wrote: > On Monday, July 18, 2016 at 2:10:07 PM UTC-4, Eric Sosman wrote: >> 3) This is not the first "efficiency" question you've asked, which >> leads me to fear that you may be well on the way to becoming an >> addict. Stop! Stop now, while you still can! "Efficiency" is a >> drug as habit- forming and as destructive as anything you can find >> in a darkened back alley. If you get hooked, you'll never get >> clean. Trust me, I know: The monkey has ridden my back for half a >> century despite my strenuous efforts to dislodge it. Don't follow >> my pathway to ruin! > > It depends how big the efficiency problem is and how many places it's > used. If you're saving a few seconds it may not be an issue, unless > that code is called many times. I worked for one of the largest > retailers in the world and we had some major performance issues. One > program we'd get down to under an hour, the initial contractors wrote > to run over 8 hours.. Question: how large a portion of the application did you have to change to achieve that? Most likely less than 1%. Optimization is something you do when you: - have noticed a real problem due to bad performance - have identified the specific cause of the bad performance Arne