Menu

GZIP with an improved parsing

Help
2007-08-13
2012-07-26
  • Ilya Muravyov

    Ilya Muravyov - 2007-08-13

    Hi!

    I wonder why you still not improved the main GZIP/ZLIB's compression. I made a small improvement by myself, it took 5 minutes. This version I called GZIP 1.2.4-hack, since it is just a GZIP with a small hack on parsing.

    Some results:
    world95.txt:
    gzip 1.2.4, -9: 862,955 bytes
    gzip 1.2.4-hack, -9: 857,205 bytes

    fp.log:
    gzip 1.2.4, -9: 1,337,914 bytes
    gzip 1.2.4-hack, -9: 1,319,851 bytes

    bible.txt:
    gzip 1.2.4, -9: 1,176,645 bytes
    gzip 1.2.4-hack, -9: 1,168,229 bytes

    3200.txt:
    gzip 1.2.4, -9: 6,205,632 bytes
    gzip 1.2.4-hack, -9: 6,183,702 bytes

    ENWIK8:
    gzip 1.2.4, -9: 36,445,248 bytes
    gzip 1.2.4-hack, -9: 36,273,716 bytes

    ENWIK9:
    gzip 1.2.4, -9: 322,591,995 bytes
    gzip 1.2.4-hack, -9: 321,050,648 bytes

    Most important that the speed is nearly kept untouched.

    Link:
    http://www.encode.ru/downloads/gzip124hack.zip (61 KB)

    Info:
    http://www.encode.ru/forums/index.php?action=vthread&forum=1&topic=499

    :)

     
    • Ilya Muravyov

      Ilya Muravyov - 2007-08-14

      I informed authors! Let's wait for their decision! :)

       
    • Christian Ehrlicher

      Where's the code/patch and did you ask the gzip if they like your changes?

       
    • Ilya Muravyov

      Ilya Muravyov - 2007-08-13

      Just included the modified "deflate.c" to the ZIP:
      http://www.encode.ru/downloads/gzip124hack.zip (71 KB)

      Some time ago I complained about GZIP's obsolete parsing on comp.compression. Directly, I do not informed authors about this patch.

      It would be great if authors of ZLIB/GZIP will include a similar parsing scheme, proposed by myself in this HACK.

      :)

       
      • GnuWin

        GnuWin - 2007-08-13

        Gnuwin32 applies only patches that are specific to the port to MS-Windows, or, for packages that haven't been updated for some time by their maintainers, patches from official Linux and BSD distributions; see
        So it would be best to propose this hack to the developers and maintainers of gzip and zlib; see the respective websites:

        http://www.gzip.org/
        http://www.zlib.net/

         
MongoDB Logo MongoDB