/[Apache-SVN]
ViewVC logotype

Revision 1647787


Jump to revision: Previous Next
Author: krosenvold
Date: Wed Dec 24 14:00:44 2014 UTC (9 years, 8 months ago)
Changed paths: 9
Log Message:
Cut overall object instantiation in half by changing file
header generation algorithm, for a 10-15 percent performance
improvement when archive contains lots of small files.

Also extracted two private methods createLocalFileHeader
and createCentralFileHeader in ZipArchiveOutputStream.

These may have some interesting additional usages in the near future.

This is basically a "tactical refactoring"; scatter/gather had a
wonderful performance in the "scatter" algorithm, but spent
an *equal* amount of time in the "gather" phase

Changed paths

Path Details
Directorycommons/proper/compress/trunk/src/changes/changes.xml modified , text changed
Directorycommons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/GeneralPurposeBit.java modified , text changed
Directorycommons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java modified , text changed
Directorycommons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipLong.java modified , text changed
Directorycommons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipShort.java modified , text changed
Directorycommons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipUtil.java modified , text changed
Directorycommons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/ZipLongTest.java modified , text changed
Directorycommons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/ZipShortTest.java modified , text changed
Directorycommons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/ZipUtilTest.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26