ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45396] New: org.apache.tools.zip is 20x slower than java. util.zip
Date Tue, 15 Jul 2008 03:47:05 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45396

           Summary: org.apache.tools.zip is 20x slower than java.util.zip
           Product: Ant
           Version: 1.7.1
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Other
        AssignedTo: notifications@ant.apache.org
        ReportedBy: kent@netbsd.org


Created an attachment (id=22257)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22257)
performance comparison code

Environment:
 Ubuntu Linux/amd64
 x86 jre 1.5.0_13-b05
 ant.jar in ant-1.7.1

I'd like to use org.apache.tools.zip instead of java.util.zip because of the
filename encoding problem of java.util.zip, and have a performance problem on
org.apache.tools.zip.

The attached Java code compress 2 files (3MiB and 2MiB) with org.apache.zip and
java.util.zip.  It shows org.apche.zip is 20x slower than java.util.zip.

Output:
% java -cp .:ant-1.7.1.jar ZipPerformance -apache -jdk
==> Benchmarking
Apache: 95832 [ms]
JDK: 4717 [ms]


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message