Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-215

ZipFile reads up to 64KiB in a sequence of one byte reads

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.1
    • 1.5
    • Archivers
    • None
    • JDK 1.7 64-bit, Windows 7

    Description

      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.

      Attachments

        1. COMPRESS-215.patch
          1 kB
          Robin Power

        Activity

          People

            Unassigned Unassigned
            robin.power Robin Power
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: