<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/bzip3-a-better-and-stronger-spiritual-successor-to-bzip2-i5pbibroh" -->

---
title: bzip3: A better and stronger spiritual successor to BZip2
description: BZip3 is an open-source compression tool positioned as a stronger successor to BZip2, using an order-0 context mixing entropy coder, a fast Burrows-Wheeler...
canonical: https://daily.dev/posts/bzip3-a-better-and-stronger-spiritual-successor-to-bzip2-i5pbibroh
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: bzip3: A better and stronger spiritual successor to BZip2 | daily.dev
og:description: BZip3 is an open-source compression tool positioned as a stronger successor to BZip2, using an order-0 context mixing entropy coder, a fast Burrows-Wheeler...
og:url: https://daily.dev/posts/bzip3-a-better-and-stronger-spiritual-successor-to-bzip2-i5pbibroh
og:image: https://api.daily.dev/og/posts/I5PBIbroH.png
og:image:alt: bzip3: A better and stronger spiritual successor to BZip2
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# bzip3: A better and stronger spiritual successor to BZip2

**[Lobsters](https://daily.dev/sources/lobsters)** · 5 min read · 0 upvotes · 0 comments

## Summary

BZip3 is an open-source compression tool positioned as a stronger successor to BZip2, using an order-0 context mixing entropy coder, a fast Burrows-Wheeler transform via suffix arrays, and an LZ77/PPM-style RLE+LZP pass. It targets text and code compression specifically. The README includes installation instructions (build from source, package managers, Homebrew), extensive benchmarks against xz, bzip2, and zstd on a Perl source archive, and combined results with lrzip for long-range deduplication, showing bzip3 achieving smaller compressed sizes and competitive decompression speeds. It has been tested across many CPU architectures and is licensed under LGPLv3, with disclaimers about data loss risk.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/iczelia/bzip3>

## Questions this post answers

### How does bzip3 compression ratio compare to bzip2 and xz on large text archives?

On a tarball of every released Perl5 version, bzip3 with a 511-block size compressed to 546,456,978 bytes, beating both xz/LZMA (2,056,645,240 bytes) and bzip2 (3,441,163,911 bytes), while Zstandard produced 3,076,143,660 bytes. Bzip3 combines a Burrows-Wheeler transform using suffix arrays with an LZ77/PPM-style RLE+LZP pass and an order-0 context-mixing entropy coder.

_Comparing compression tools before picking one for an archival pipeline is easier with benchmark data surfaced on daily.dev._

### What license is bzip3 released under?

Bzip3 as a whole is licensed under LGPLv3 only, not dual-licensed with Apache 2.0. Individual components carry different licenses: the libsais BWT and LZP code is Apache 2.0, build-aux scripts are GPL-3+ with an autoconf exception or FSFAP, and the bz3grep utility is BSD-2-clause.

_Developers evaluating licensing terms for compression libraries can track details like this on daily.dev._

## Community take

How the wider developer community reacted, aggregated from 2 discussions and 226 comments across lobsters, hackernews (as of 2026-09-14).

**TL;DR:** Discussion centers heavily on whether bzip3's benchmarks are fair, with strong pushback that its headline numbers versus zstd/xz are cherry-picked (mismatched window sizes, defaults, memory usage), while others note its very slow, memory-hungry decompression and inconsistent real-world performance despite occasional impressive ratios.

**Sentiment:** 20% positive · 40% mixed · 40% skeptical

**The case for**

- Some found it genuinely competitive or superior to zstd/xz on certain corpora like the Silesia benchmark or large text files.
- One person reported noticeably smaller output than gzip, bzip2, and zstd on a real 2.3GB jsonl dataset.
- It's now included in a well-known large text compression benchmark and performs respectably there.

**The pushback**

- Multiple commenters argue the published benchmarks are disingenuous or cherry-picked due to mismatched block/window sizes and default settings versus zstd.
- Decompression is reported as extremely slow (sometimes 100x+ slower) and memory-hungry compared to zstd, which is a major practical downside.
- Performance is described as highly unpredictable and data-dependent, making it hard to know in advance whether it will beat zstd or xz.
- Concerns raised about the stark 'may lose your data' disclaimer, project naming/trademark similarity to bzip2, and choice of LGPL license.
- Comparisons against single-threaded bzip2 instead of multithreaded pbzip2 are seen as an unfair benchmarking choice.

**By community**

- lobsters (mixed): Light discussion mostly pointing to prior threads, external benchmark listings, and a tangential note about a blacklisted benchmark site.
- hackernews (skeptical): Heavy, technical debate dominated by accusations that the benchmarks are cherry-picked, plus concerns about slow decompression, high memory use, and licensing/naming gripes, alongside some genuine praise for specific results.

**Hottest debate:** Whether the benchmark comparisons against zstd (and others) are fair, given differing window/block sizes, compression levels, and memory usage.

**Open questions**

- What zstd settings (window size, compression level) would produce a truly apples-to-apples comparison with bzip3?
- Why is decompression so much slower and more memory-intensive than zstd, and can that be improved?
- Is bzip3's strong performance limited to specific data types (e.g., highly repetitive text) rather than general-purpose use?
- Is there a build/CI issue given reports of failing builds and a stale latest release?

**Highlights**

> The benchmarks are disingenuous, to the point of looking cherry-picked. The block size for bzip3 is set to 512MB, but the window size for zstd is left to its default (8MB I believe for high levels). So in this corpus, which is made up of all versions of Perl source code concatenated, the window is too small to see all the identical files and just match them. Also corpora made out of very long repetitions are pretty much the best case scenario for BWT-based compressors. If we match the window size of zstd to that of bzip3 we get dramatically different results:     % gzcat *.gz | time zstd -T8 -16 | wc -c  # baseline      2819113884     zstd -T8 -16  2054.50s user 3.47s system 783% cpu 4:22.80 total     % gzcat *.gz | time zstd -T8 -16 --long=29 | wc -c      196405076     zstd -T8 -16 --long=29  1083.06s user 2.41s system 783% cpu 2:18.55 total Almost 15x smaller than the baseline, and more than 2x smaller than bzip3, also CPU time halves (since long matches are found earlier, so there's less work to do). (the baseline number is slightly different because I don't have the exact Perl version set used by the author) Also, in the benchmarks using lrzip, which would make the window size less relevant, zstd is not even compared.
> — [ot on hackernews · 7 comments](https://news.ycombinator.com/item?id=49598996)

> There is a comparison with "zstd -19" on the Silesia corpus, showing better compression ratio for bzip3 (47.2 vs 53MB) while being ~5 times faster (and using only half the memory). Even if the examples are highly cherry-picked, it is quite suprising to me that such pareto-dominance is possible at all. edit: Tested it myself and found that it often also does slightly worse than zstd -19 in compression ratio but faster (it was slower in one case on "uncompressible" input). Compression performance vs "zstd -19" seems to depends a lot on actual input data in a very unpredictable way. I'd assume the benchmarks that they show are definitely somewhat cherry-picked.
> — [myrmidon on hackernews · 1 comments](https://news.ycombinator.com/item?id=49598853)

> Yes, bzip3 compresses that 1GB text file into 170 MB while zstd needs 213 MB (SI units, from my own tests with the "enwik9" file of the GP's page, and the latest releases of both programs, same commands). But the decompression (memory and speed) is a different story. On my desktop, decompressing with zstd requires 128 MB and 1 s, while bzip3 uses 3.2 GB and 90 s. Without `-b 511`, bzip3's ratio decreases and decompression requires about the same memory as zstd. But the decompression is still two orders of magnitude slower.
> — [idoubtit on hackernews · 1 comments](https://news.ycombinator.com/item?id=49602743)

> "DO NOT COMPRESS ANY DATA WITH THIS PROGRAM UNLESS YOU ARE PREPARED TO ACCEPT THE POSSIBILITY, HOWEVER SMALL, THAT THE DATA WILL NOT BE RECOVERABLE." So why would anybody, hobbyist or enterprise, use this? Or does something older like 7zip also have this caveat that I've never experienced.
> — [sergiotapia on hackernews · 3 comments](https://news.ycombinator.com/item?id=49599901)

> How did I miss zstd? Here are my benchmarks for 2.3 GB of jsonl, on a laptop. Compressed size, compress time, decompress time; using defaults.     gzip  7.3%  21s  9s     bzip2 4.6% 251s 50s     bzip3 3.3%  82s 69s     zstd  6.9%   2s  3s     lzma  4.7%  51s  3s
> — [8organicbits on hackernews · 4 comments](https://news.ycombinator.com/item?id=49600507)

**Source threads**

- [lobsters](https://lobste.rs/s/9coxwz/bzip3_better_stronger_spiritual) · 14 points · 4 comments
- [hackernews](https://news.ycombinator.com/item?id=49598291) · 395 points · 222 comments

## Similar posts on daily.dev

- [An ode to bzip](https://daily.dev/posts/an-ode-to-bzip-77mxidlhb) · Lobsters · 1 upvotes · 0 comments
- [A better zip bomb](https://daily.dev/posts/a-better-zip-bomb-3qlj6gcty) · Hacker News · 1 upvotes · 0 comments
- [Zlib-ng 2.3.1 Released With More CPU Performance Optimizations](https://daily.dev/posts/zlib-ng-2-3-1-released-with-more-cpu-performance-optimizations-txg3qwws0) · Phoronix · 0 upvotes · 0 comments

---

Tags: [#open-source](https://daily.dev/tags/open-source), [#c](https://daily.dev/tags/c), [#compression](https://daily.dev/tags/compression)

[View this post on daily.dev](https://daily.dev/posts/bzip3-a-better-and-stronger-spiritual-successor-to-bzip2-i5pbibroh)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"bzip3: A better and stronger spiritual successor to BZip2","url":"https://daily.dev/posts/bzip3-a-better-and-stronger-spiritual-successor-to-bzip2-i5pbibroh","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/bzip3-a-better-and-stronger-spiritual-successor-to-bzip2-i5pbibroh"},"datePublished":"2026-09-08T05:50:07.438Z","dateModified":"2026-09-14T08:52:37.386Z","description":"BZip3 is an open-source compression tool positioned as a stronger successor to BZip2, using an order-0 context mixing entropy coder, a fast Burrows-Wheeler...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/54fa6cde758a6266b863609b4083929f?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/54fa6cde758a6266b863609b4083929f?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Lobsters","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Lobsters","logo":"https://media.daily.dev/image/upload/s--tl8v_Fku--/f_auto,t_logo/v1698841318/logos/lobste.jpg","url":"https://daily.dev/sources/lobsters"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/bzip3-a-better-and-stronger-spiritual-successor-to-bzip2-i5pbibroh","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"open-source,c,compression","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Lobsters","item":"https://daily.dev/sources/lobsters"},{"@type":"ListItem","position":3,"name":"bzip3: A better and stronger spiritual successor to BZip2"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/bzip3-a-better-and-stronger-spiritual-successor-to-bzip2-i5pbibroh#faq","mainEntity":[{"@type":"Question","name":"How does bzip3 compression ratio compare to bzip2 and xz on large text archives?","acceptedAnswer":{"@type":"Answer","text":"On a tarball of every released Perl5 version, bzip3 with a 511-block size compressed to 546,456,978 bytes, beating both xz/LZMA (2,056,645,240 bytes) and bzip2 (3,441,163,911 bytes), while Zstandard produced 3,076,143,660 bytes. Bzip3 combines a Burrows-Wheeler transform using suffix arrays with an LZ77/PPM-style RLE+LZP pass and an order-0 context-mixing entropy coder. Comparing compression tools before picking one for an archival pipeline is easier with benchmark data surfaced on daily.dev."}},{"@type":"Question","name":"What license is bzip3 released under?","acceptedAnswer":{"@type":"Answer","text":"Bzip3 as a whole is licensed under LGPLv3 only, not dual-licensed with Apache 2.0. Individual components carry different licenses: the libsais BWT and LZP code is Apache 2.0, build-aux scripts are GPL-3+ with an autoconf exception or FSFAP, and the bz3grep utility is BSD-2-clause. Developers evaluating licensing terms for compression libraries can track details like this on daily.dev."}}]}
```

