Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
Google Graphics Open Source Software Technology

Google Publishes Zopfli, an Open-Source Compression Library 124

alphadogg writes "Google is open-sourcing a new general purpose data compression library called Zopfli that can be used to speed up Web downloads. The Zopfli Compression Algorithm, which got its name from a Swiss bread recipe, is an implementation of the Deflate compression algorithm that creates a smaller output size (PDF) compared to previous techniques, wrote Lode Vandevenne, a software engineer with Google's Compression Team, on the Google Open Source Blog on Thursday. 'The smaller compressed size allows for better space utilization, faster data transmission, and lower Web page load latencies. Furthermore, the smaller compressed size has additional benefits in mobile use, such as lower data transfer fees and reduced battery use,' Vandevenne wrote. The more exhaustive compression techniques achieve higher data density, but also make the compression a lot slower. This does not affect the decompression speed though, Vandenne wrote."
This discussion has been archived. No new comments can be posted.

Google Publishes Zopfli, an Open-Source Compression Library

Comments Filter:
  • Re:Overhyped (Score:5, Interesting)

    by TeknoHog ( 164938 ) on Friday March 01, 2013 @05:11PM (#43049183) Homepage Journal
    If I understand this correctly, the point is to be compatible with zlib decompression. Obviously, you can bet much better compression with xz/lzma, for example, but that would be out of range for most browsers.
  • Re:Overhyped (Score:5, Interesting)

    by K. S. Kyosuke ( 729550 ) on Friday March 01, 2013 @05:28PM (#43049353)

    But it's practical merit is virtually nil.

    ...unless you're a large web-based company serving terabytes of identical textual files to end users using deflated HTTP streams.

  • Re:Overhyped (Score:4, Interesting)

    by n7ytd ( 230708 ) on Friday March 01, 2013 @06:16PM (#43049795)

    If I understand this correctly, the point is to be compatible with zlib decompression. Obviously, you can bet much better compression with xz/lzma, for example, but that would be out of range for most browsers.

    Odd that Google doesn't just push to extend the supported compression formats to include more of these more modern compression libraries if this is a serious concern for them. This sounds like two guys using their 20% time to figure out a way to optimize the deflate algorithm. Kudos to them, but this is not comparable to releasing a royalty-free video codec or other large Googly-type project.

    According to the article, "Zopfli is 81 times slower than the fastest measured algorithm gzip -9" Almost two orders of magnitude of time taken, in return for a compression gain of 3%-8%. It would have been informative to know how much working memory was used vs. what gzip requires. This is a small gain of network bandwidth; trivial, even. But, if you're Google and already have millions of CPUs and petabytes of RAM running at less than 100% capacity, this is the type of small gain you might implement.

  • Re:Overhyped (Score:4, Interesting)

    by Pausanias ( 681077 ) <pausaniasx@NOspAm.gmail.com> on Friday March 01, 2013 @06:38PM (#43050033)

    The numbers cited are for gzip. The improvement over 7-zip is much less than 3%; it's more like 1%, at the cost of a factor of four slowdown with respect to 7-zip. Note that this is for 7-zip when restricted to deflate-compatible formats only.

    Here's the paper:
    https://code.google.com/p/zopfli/downloads/list [google.com]

  • Re:Overhyped (Score:4, Interesting)

    by SuricouRaven ( 1897204 ) on Friday March 01, 2013 @06:42PM (#43050087)

    Wrong field. For general-purpose compression formats, rar is already far more capable than this, and 7z is better still. But neither of these are suitable for webbrowsers to transparently decompress - there, gzip and DEFLATE still reigns supreme. Zopfil is backwards-compatible: Browsers that support gzip/DEFLATE will work with it, no updates required.

    Personally I think Google should have worked on increasing the number of decompressors browsers support - bzip would be nice, at least. The Accept-Encoding negotiation is already there, very easy to extend. But this will have to do.

Work is the crab grass in the lawn of life. -- Schulz

Working...