Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 701B98BE3 for ; Wed, 7 Sep 2011 11:50:19 +0000 (UTC) Received: (qmail 47237 invoked by uid 500); 7 Sep 2011 11:50:18 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 46722 invoked by uid 500); 7 Sep 2011 11:50:13 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 46714 invoked by uid 99); 7 Sep 2011 11:50:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2011 11:50:11 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [193.74.71.26] (HELO hel.is.scarlet.be) (193.74.71.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2011 11:50:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scarlet.be; s=scarlet; t=1315396182; bh=lSKbtP+5EwZeX8GqahlNFj4fTmB58msx/v7RXT8Rxic=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=b51EP4ZvfMPQwh7QAo9d0/GzkGlZ1kWmYftErJZhvClXTtnq3Wi1orq1uBXPNwIvS ze45FB7Dmp+Vbbjn52Nf5ZqjKSwc03BI4aqfP0mrqUwiUwP61PRwYnPVNg95QxHahp 9jX5vDvqw3ejSeocNOv8esJWVEGNemiUGF2KnniI= Received: from mail.harfang.homelinux.org (ip-62-235-230-191.dsl.scarlet.be [62.235.230.191]) by hel.is.scarlet.be (8.14.5/8.14.5) with ESMTP id p87Bnf12001459 for ; Wed, 7 Sep 2011 13:49:42 +0200 X-Scarlet: d=1315396182 c=62.235.230.191 Received: from localhost (mail.harfang.homelinux.org [192.168.20.11]) by mail.harfang.homelinux.org (Postfix) with ESMTP id AE97161CE9 for ; Wed, 7 Sep 2011 13:49:41 +0200 (CEST) Received: from mail.harfang.homelinux.org ([192.168.20.11]) by localhost (mail.harfang.homelinux.org [192.168.20.11]) (amavisd-new, port 10024) with ESMTP id 29G2tdfTCVUL for ; Wed, 7 Sep 2011 13:49:39 +0200 (CEST) Received: from dusk.harfang.homelinux.org (mail.harfang.homelinux.org [192.168.20.11]) by mail.harfang.homelinux.org (Postfix) with ESMTP id 4AD266175F for ; Wed, 7 Sep 2011 13:49:39 +0200 (CEST) Received: from eran by dusk.harfang.homelinux.org with local (Exim 4.76) (envelope-from ) id 1R1GdP-0002kR-5h for dev@commons.apache.org; Wed, 07 Sep 2011 13:49:39 +0200 Date: Wed, 7 Sep 2011 13:49:38 +0200 From: Gilles Sadowski To: dev@commons.apache.org Subject: Re: svn commit: r1166099 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/LUDecompositionImpl.java Message-ID: <20110907114938.GT2590@dusk.harfang.homelinux.org> Mail-Followup-To: dev@commons.apache.org References: <20110907103449.A98B92388A6E@eris.apache.org> <4E6749E9.9010506@apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E6749E9.9010506@apache.org> X-Operating-System: Tiny Tux X-PGP-Key-Fingerprint: 53B9 972E C2E6 B93C BEAD 7092 09E6 AF46 51D0 5641 User-Agent: Mutt/1.5.21 (2010-09-15) X-DCC-scarlet.be-Metrics: hel 20002; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: clamav-milter 0.97.1-exp at hel X-Virus-Status: Clean On Wed, Sep 07, 2011 at 11:39:37AM +0100, Mark Thomas wrote: > On 07/09/2011 11:34, erans@apache.org wrote: > > Author: erans > > Date: Wed Sep 7 10:34:49 2011 > > New Revision: 1166099 > > > > URL: http://svn.apache.org/viewvc?rev=1166099&view=rev > > Log: > > Added "final". > > Moved declaration of "sum" where it is used. > > You might want to re-consider that. I suspect sum was declared outside > of the inner loops to save allocating memory for a new double on every > iteration of the loop. It may be worth moving the declaration outside > the outer loop too. Reducing scope makes for clearer code and can lead to _more_ optimized code. Gilles --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org