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

Speed up decoder for deflate64

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.16
    • Compressors
    • None

    Description

      With the buffer applied in COMPRESS-438 the decompression speed is actually quite all right, but there's still room for improvement. I was quite curious what the bounds for pure-java inflater would be and hacked a quick experiment with ZipFile using jzlib's implementation [1] to decompress a large-ish archive (openjdk8 repository).

      The results for deflate, deflate64 and java's built-in decompressor are below.

      Java (Inflater):
      archive.zip 4.38 sec., 444,357,134 archived => 731,621,181 decompressed
      
      jzlib's pure-java inflater:
      archive.zip 6.65 sec., 444,357,134 archived => 731,621,181 decompressed
      
      current deflate64 in commons-compress (with my allocation-reducing patch):
      archive64.zip 11.35 sec., 443,209,798 archived => 731,630,120 decompressed
      

      [1] http://www.jcraft.com/jzlib/

      Attachments

        Activity

          People

            Unassigned Unassigned
            dweiss Dawid Weiss
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: