You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Robin Power (JIRA)" <ji...@apache.org> on 2013/01/16 07:16:12 UTC

[jira] [Created] (COMPRESS-215) ZipFile reads up to 64KiB in a sequence of one byte reads

Robin Power created COMPRESS-215:
------------------------------------

             Summary: ZipFile reads up to 64KiB in a sequence of one byte reads
                 Key: COMPRESS-215
                 URL: https://issues.apache.org/jira/browse/COMPRESS-215
             Project: Commons Compress
          Issue Type: Improvement
          Components: Archivers
    Affects Versions: 1.4.1
         Environment: JDK 1.7 64-bit, Windows 7
            Reporter: Robin Power
            Priority: Minor


This relates to a performance improvement.

When ZipFile is parsing a file it searches for the ZIP64 End Of Central Directory Locator as a first step to determining if the file is ZIP64 or regular 32 bit. It searches in reverse for the ZIP64 EOCDL signature from the end of the file reading one byte at a time, potentially up to about 64KiB.

This can be an expensive operation, especially if it is not a ZIP64 file, as it will make over 64000 file reads to determine that the file is not ZIP64.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira