🍺 BREW Explorer

← all formulae

libdeflate

brew install libdeflate v1.25 MIT

Fast C library and utilities for DEFLATE, zlib, and gzip compression/decompression with x86/ARM SIMD optimization.

Why you might care

libdeflate significantly outperforms zlib for compression and decompression speed, especially on x86 and ARM. It's a drop-in replacement library for projects needing better compression performance, and includes a gzip-compatible command-line tool. Useful as a build/runtime dependency when compression speed matters.

Categories

Alternatives

zlib brotli xz
15.5k
30-day installs · #276
66.2k
90-day · #232
604.2k
365-day · #114
1.3k
★ GitHub stars · updated 1mo ago

Build dependencies

Links

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "zlib",
    "brotli",
    "xz"
  ],
  "build_dependencies": [
    "cmake"
  ],
  "categories": [
    "library",
    "compression"
  ],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Heavily optimized DEFLATE/zlib/gzip compression and decompression",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:40:46+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "libdeflate",
  "github_default_branch": "master",
  "github_last_commit_at": "2026-05-17T04:28:15Z",
  "github_readme_excerpt": "# Overview\n\nlibdeflate is a library for fast, whole-buffer DEFLATE-based compression and\ndecompression.\n\nThe supported formats are:\n\n- DEFLATE (raw)\n- zlib (a.k.a. DEFLATE with a zlib wrapper)\n- gzip (a.k.a. DEFLATE with a gzip wrapper)\n\nlibdeflate is heavily optimized.  It is significantly faster than the zlib\nlibrary, both for compression and decompression, and especially on x86 and ARM\nprocessors.  In addition, libdeflate provides optional high compression modes\nthat provide a better compression ratio than the zlib\u0027s \"level 9\".\n\nlibdeflate itself is a library.  The following command-line programs which use\nthis library are also included:\n\n* `libdeflate-gzip`, a program which can be a drop-in replacement for standard\n  `gzip` under some circumstances.  Note that `libdeflate-gzip` has some\n  limitations; it is provided for convenience and is **not** meant to be the\n  main use case of libdeflate.  It needs a lot of memory to process large files,\n  and it omits support for some infrequently-used options of GNU gzip.\n\n* `benchmark`, a test program that does round-trip compression and decompression\n  of the provided data, and measures the compression and decompression speed.\n  It can use libdeflate, zlib, or a combination of the two.\n\n* `checksum`, a test program that checksums the provided data with Adler-32 or\n  CRC-32, and optionally measures the speed.  It can use libdeflate or zlib.\n\nFor the release notes, see the [NEWS file](NEWS.md).\n\n## Table of Contents\n\n- [Building](#building)\n  - [Using CMake](#using-cmake)\n  - [Directly integrating the library sources](#directly-integrating-the-library-sources)\n  - [Supported compilers](#supported-compilers)\n- [API](#api)\n- [Bindings for other programming languages](#bindings-for-other-programming-languages)\n- [DEFLATE vs. zlib vs. gzip](#deflate-vs-zlib-vs-gzip)\n- [Compression levels](#compression-levels)\n- [Motivation](#motivation)\n- [License](#license)\n\n# Building\n\n## Using CMake\n\nlibdeflate uses [CMake](https://cmake.or",
  "github_repo": "ebiggers/libdeflate",
  "github_stars": 1254,
  "github_topics": [],
  "homepage": "https://github.com/ebiggers/libdeflate",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 15506,
  "installs_365d": 604151,
  "installs_90d": 66182,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT",
  "llm_generated_at": "2026-06-20T23:43:52+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "libdeflate",
  "oldnames": [],
  "one_liner": "Fast C library and utilities for DEFLATE, zlib, and gzip compression/decompression with x86/ARM SIMD optimization.",
  "optional_dependencies": [],
  "rank_30d": 276,
  "rank_365d": 114,
  "rank_90d": 232,
  "raw_hash": "ea60a3d4c30a0397",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/lib/libdeflate.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": null,
  "version_stable": "1.25",
  "versioned_formulae": [],
  "why_use_this": "libdeflate significantly outperforms zlib for compression and decompression speed, especially on x86 and ARM. It\u0027s a drop-in replacement library for projects needing better compression performance, and includes a gzip-compatible command-line tool. Useful as a build/runtime dependency when compression speed matters."
}