From dev-return-86347-apmail-ant-dev-archive=ant.apache.org@ant.apache.org Fri Feb 18 04:30:57 2011 Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 78539 invoked from network); 18 Feb 2011 04:30:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Feb 2011 04:30:57 -0000 Received: (qmail 11415 invoked by uid 500); 18 Feb 2011 04:30:57 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 11078 invoked by uid 500); 18 Feb 2011 04:30:53 -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 11070 invoked by uid 99); 18 Feb 2011 04:30:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Feb 2011 04:30:52 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of foamdino@gmail.com designates 209.85.212.45 as permitted sender) Received: from [209.85.212.45] (HELO mail-vw0-f45.google.com) (209.85.212.45) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Feb 2011 04:30:44 +0000 Received: by vws12 with SMTP id 12so1741139vws.4 for ; Thu, 17 Feb 2011 20:30:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=F+L8L2pKBHQsp1sZfH0pgE9c4O69FfG2KbEGkN1YVrg=; b=luW+C3wCbo3W59jGvHj9Ux1/3+d4BF/kgIwNubztqSacmz/92HmnY70VNNt4uFuWKv A+Y9QrjFYj8demFcThUBciE2UJIiWtCx0Ry6smjOw29KvolM74KUejOtuAHaZts6o5FP 1JWqBjvBmIW3prlZkYkj72D8ZenaOuksVUSHA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=qaU8Bgl+KQzBJ3H/UK/IiDgHOHIcUZBH63dZSJIujAFcHjhg9NbzHRRLyWAK7NqdZJ ytoWaei2EmYEU2Brnd32Ue5Tc1DVcbpp0nsovaKD6oi85E6UP3pEp90lbo4JymnSsqlr yqzynwIDZKes2qCpdA2IkAeFAWWlWUBV4kTdU= MIME-Version: 1.0 Received: by 10.52.161.225 with SMTP id xv1mr379322vdb.292.1298003423649; Thu, 17 Feb 2011 20:30:23 -0800 (PST) Received: by 10.220.61.207 with HTTP; Thu, 17 Feb 2011 20:30:23 -0800 (PST) Date: Fri, 18 Feb 2011 11:30:23 +0700 Message-ID: Subject: Re: svn commit: r1066963 - in /ant/core/trunk/src/main/org/apache/tools: ant/ ant/taskdefs/ ant/taskdefs/cvslib/ ant/taskdefs/email/ ant/taskdefs/optional/ ant/taskdefs/optional/depend/ ant/taskdefs/optional/depend/constantpool/ ant/taskdefs/optional From: Kevin Jackson To: Ant Developers List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi, >> On 02/04/2011 09:03 AM, Antoine Levy-Lambert wrote: >>> I did not know that using a final variable for the upper bound of a loop instead of something.size() makes a difference in terms of performance. > >> Generally the preferred idiom is to use an iterator, > > Absolutely agreed, but that would have been a bigger change so I shied > away from it (as well as from replacing Vectors with some other lists in > various places). Yeah the idiom I use is: for(int i=0, len=list.size(); i