Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 91523 invoked from network); 22 Feb 2011 14:53:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Feb 2011 14:53:59 -0000 Received: (qmail 19124 invoked by uid 500); 22 Feb 2011 14:53:59 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 18794 invoked by uid 500); 22 Feb 2011 14:53:56 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 18784 invoked by uid 99); 22 Feb 2011 14:53:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Feb 2011 14:53:55 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jak-ant-dev@m.gmane.org designates 80.91.229.12 as permitted sender) Received: from [80.91.229.12] (HELO lo.gmane.org) (80.91.229.12) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Feb 2011 14:53:46 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PrtcE-0001PO-FU for dev@ant.apache.org; Tue, 22 Feb 2011 15:53:26 +0100 Received: from c-76-19-99-26.hsd1.ma.comcast.net ([76.19.99.26]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Feb 2011 15:53:26 +0100 Received: from jesse.glick by c-76-19-99-26.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Feb 2011 15:53:26 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: dev@ant.apache.org From: Jesse Glick Subject: Re: list iteration (was: svn commit: r1066963 ...) Date: Tue, 22 Feb 2011 09:53:14 -0500 Organization: Oracle Corp. / NetBeans Lines: 11 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-76-19-99-26.hsd1.ma.comcast.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7 In-Reply-To: X-Virus-Checked: Checked by ClamAV on apache.org On 02/17/2011 11:30 PM, Kevin Jackson wrote: > I tried to introduce some micro-optimizations > (pretty much like these) into the Tomcat codebase 8 years ago, but was > met with 'meh why bother?' responses as the thinking was that the vm > would pretty much make optimizations pointless. I suppose it depends > on where the hotspots are. And for a tool like Ant, it is unlikely that iterating a vector is consuming any measurable proportion of execution time, unless for some reason this particular vector is enormous or you are scanning it many thousands of times. Most of the time will be spent waiting for disk I/O, or CPU in some tool like javac. If you actually run a profiler on some typical loads and ignore unavoidable overhead (such as logically necessary file stats), usually you find some weird and vaguely embarrassing problem that you would never have guessed otherwise. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org