Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.erje.net!news.internetdienste.de!news.tu-darmstadt.de!news.belwue.de!rz.uni-karlsruhe.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail From: Lothar Kimmeringer Newsgroups: comp.lang.java.programmer Subject: Re: Java left shift and right shift operators. Date: Thu, 28 Apr 2011 09:14:32 +0200 Organization: Organization?! Only chaos here! Lines: 28 Message-ID: References: <295e16b3-2ed8-4529-bfb0-1cc26ed93ad6@d26g2000prn.googlegroups.com> <1b558330-ae94-4e4e-9922-a9aeb63eaf37@d19g2000prh.googlegroups.com> Reply-To: news@kimmeringer.de NNTP-Posting-Host: mnch-4d043cf0.pool.mediaways.net Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: online.de 1303974872 22641 77.4.60.240 (28 Apr 2011 07:14:32 GMT) X-Complaints-To: abuse@einsundeins.com NNTP-Posting-Date: Thu, 28 Apr 2011 07:14:32 +0000 (UTC) User-Agent: 40tude_Dialog/2.0.15.1de Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3327 Travers Naran wrote: > The usual rules for optimization: > > 1. Profile your code > 2. Determine where your code is spending most of its time > 3. Re-visit your algorithm and decide if you are using the right algorithm. > 3a. If so, optimize the methods that are consuming most of the time. > 3b. Implement a better algorithm 3c Run your testcases to check that nothing is broken 3d Realize that you haven't one 3e Roll back your changes using SVN->Revert 3f Write a testcase checking the current algorithm and its borders where it's not working anymore and run it 3g Go back to 3b and skip 3d - 3g 3f > and repeat these processes. Regards, Lothar -- Lothar Kimmeringer E-Mail: spamfang@kimmeringer.de PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81) Always remember: The answer is forty-two, there can only be wrong questions!