/[Apache-SVN]
ViewVC logotype

Revision 277122


Jump to revision: Previous Next
Author: sbailliez
Date: Sat Dec 4 00:03:50 2004 UTC (19 years, 4 months ago)
Changed paths: 6
Log Message:
First attempt at optimizing the zip code to have decent performance
The performance problem was mainly due to the entry insertion in
the hashtable where all hash code were equals in the hashtable.
I also removed a lot of unecessary Zip(Long|Short) object creation by
adding static methods and suppressed a hashtable. 

More can be done, but I tried not to break the interface and have as less code
as possible. The testcase attached in the bug report show that it is now 15% slower than Sun native code and 20% faster than Jazz libs.

Now watch for Gump...

PR: 31930


Changed paths

Path Details
Directoryant/core/trunk/src/main/org/apache/tools/zip/AsiExtraField.java modified , text changed
Directoryant/core/trunk/src/main/org/apache/tools/zip/ZipEntry.java modified , text changed
Directoryant/core/trunk/src/main/org/apache/tools/zip/ZipFile.java modified , text changed
Directoryant/core/trunk/src/main/org/apache/tools/zip/ZipLong.java modified , text changed
Directoryant/core/trunk/src/main/org/apache/tools/zip/ZipOutputStream.java modified , text changed
Directoryant/core/trunk/src/main/org/apache/tools/zip/ZipShort.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26