brotli VS ZLib

Compare brotli vs ZLib and see what are their differences.

brotli

Brotli compression format (by google)

ZLib

A massively spiffy yet delicately unobtrusive compression library. (by madler)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
brotli ZLib
24 49
13,048 5,219
1.2% -
8.3 8.9
3 days ago 3 days ago
TypeScript C
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

brotli

Posts with mentions or reviews of brotli. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-06.
  • Compression efficiency with shared dictionaries in Chrome
    3 projects | news.ycombinator.com | 6 Mar 2024
    The brotli repo on github has a dictionary generator: https://github.com/google/brotli/blob/master/research/dictio...

    I have a hosted version of it on https://use-as-dictionary.com/ to make it easier to experiment with.

  • The Full-Stack development experience
    2 projects | dev.to | 12 Oct 2023
    An additional element that we can finally remove from our stack is the minification of JavaScript and CSS files. Thanks to algorithms like brotli (with a very Swiss flavour) we no longer need to minify and compress our files before distributing them. Cloudflare, Nginx, or Apache will take care of everything for us.
  • How Much Faster Is Making a Tar Archive Without Gzip?
    8 projects | news.ycombinator.com | 10 Oct 2022
    For anyone who wants to try this, zstd -T0 uses all your threads to compress, and https://github.com/facebook/zstd has a lot more description. Brotli, https://github.com/google/brotli, is another modern format with some good features for high compression levels and Content-Encoding support in web browsers. You might also want to play with the compression level (-1 to -11 or more, zstd's --fast=n).

    One reason these modern compressors do better is not any particular mistake made defining DEFLATE in the 90s, but that new algos use a few MB of recently seen data as context instead of 32KB, and do other things impractical in the 90s but reasonable on modern hardware. The new algorithms also contain logs of smart ideas and have fine-tuned implementations, but that core difference seems important to note.

  • Troubling Launching Duckstation
    2 projects | /r/macgaming | 5 Sep 2022
    It seems to be using a lib called brotli - https://github.com/google/brotli. Can you compile from source?
  • 2000’s Winamp/WMP-ish skins?
    9 projects | /r/foobar2000 | 26 Jul 2022
    (++) Play Youtube videos and playlistsRelease date: Feb 3 20223dyd, [email protected] libraries: brotli https://github.com/google/brotli (1.0.7)
  • Stop delaying. Share knowledge on a blog built with Eleventy.
    7 projects | dev.to | 19 Jul 2022
    Alright, the minifying is done. What else? Did you know you can serve HTML, CSS and JS compressed? A lot of websites still use gzip, but there’s also Brotli. Brotli is specifically made for the web and compresses a lot better than gzip in most cases.
  • Configuring CloudFront to compress objects in AWS CDK
    2 projects | dev.to | 1 Jun 2022
    You can use CloudFront to automatically compress certain types of objects (files) and serve the compressed objects when viewers (web browsers or other clients) support them. Viewers indicate their support for compressed objects with the Accept-Encoding HTTP header. CloudFront can compress objects using the Gzip and Brotli compression formats. When the viewer supports both formats, CloudFront prefers Brotli.
  • Looking for maintainer for jvm-brotli
    7 projects | /r/java | 18 Apr 2022
    Hi /r/java! Jetty is considering implementing dynamic Brotli compression, but the current JVM wrapper for Google's Brotli (jvm-brotli) is somewhat ... abandoned.
    7 projects | /r/java | 18 Apr 2022
  • dabbling @epilot-dev with ______
    3 projects | dev.to | 21 Mar 2022
    Year 2022 marked an amazing start for me with a new stint with epilot GmbH based out of Cologne, Germany. I joined the team to be working on their micro-frontend architecture, with my primary focus going to be on the performance aspects of the applications. Like the first recent addition we did after I started was to add brotli compression to each of our micro-frontend (MFEs) bundles.

ZLib

Posts with mentions or reviews of ZLib. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-25.

What are some alternatives?

When comparing brotli and ZLib you can also consider the following projects:

Snappy - A fast compressor/decompressor

LZ4 - Extremely Fast Compression algorithm

zstd - Zstandard - Fast real-time compression algorithm

LZMA - (Unofficial) Git mirror of LZMA SDK releases

Onion - C library to create simple HTTP servers and Web Applications.

Minizip-ng - Fork of the popular zip manipulation library found in the zlib distribution.

zlib-ng - zlib replacement with optimizations for "next generation" systems.

libarchive - Multi-format archive and compression library