Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 48765 invoked from network); 9 Nov 2004 02:58:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Nov 2004 02:58:02 -0000 Received: (qmail 62124 invoked by uid 500); 9 Nov 2004 02:57:59 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 62073 invoked by uid 500); 9 Nov 2004 02:57:58 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 62057 invoked by uid 99); 9 Nov 2004 02:57:57 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 08 Nov 2004 18:57:57 -0800 Received: (qmail 8005 invoked by uid 50); 9 Nov 2004 02:57:56 -0000 Date: 9 Nov 2004 02:57:56 -0000 Message-ID: <20041109025756.8004.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: dev@ant.apache.org Cc: Subject: DO NOT REPLY [Bug 31930] - Zip & Unzip tasks major slowdown X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31930 Zip & Unzip tasks major slowdown ------- Additional Comments From kevin.jackson@it.fts-vn.com 2004-11-09 02:57 ------- I looked at this last night, and noticed that there are a lot of enumerations and Vectors in ths code. I'm not sure that synchronisation issues would occur if the implementation was changed to an unsynchronised collection (ArrayList for example), but that should speed up reading the entries (I've not made any changes and tested, so this is only supposition based on the performance hit that synchronisation incurs). Also, the loops are not optimal in terms of the idioms used while(enumeration.hasMoreElements()) is an extra method call per iteration for(int i=0, size=vector.size; i< size;) { vector.get(i); } is a little faster (in my experience) for tighter loops, and you don't have to create an enumeration. Problem is code is more difficult to parse quickly! small loop unrolls *may* help, but only in the case where there are large filesets, small Zip files would probably show little or no benefit. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org