LZ-based compressor for write-once, read-many data: slow to compress, very fast and bounds-checked to decompress
- Language
- C++
- License
- MIT
- Try it
git clone https://github.com/welcome-to-the-sunny-side/misa77 && cd misa77 && cmake -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build
misa77 is a new open-source compressor that trades slow compression for very fast decompression. Its benchmarks show the recommended levels decoding about 2 to 3 times faster than LZ4 and zstd at similar compression ratios. The project is a C++20 library and command-line tool under the MIT licence. Version 0.9.0 was tagged on Nov. 30. It was posted to Hacker News as a Show HN on Dec. 3, and Trendoday's tracker shows it reaching #1 on the Show HN list that day.
Why it matters: a lot of data is compressed once and read thousands or millions of times. Game assets, app bundles and dataset shards are typical. For those, decode speed and size matter more than compression time. misa77 also arrives with numbers from two widely used compression benchmarks, not only its author's own.
What it is
The README describes an LZ-family compressor aimed at very fast single-threaded decoding, good ratios for that speed and constant compressor memory. It has two groups of levels:
- Levels 1–6 are plain LZ compression with no entropy coding. They compete with LZ4.
- Levels 11–13 add entropy coding, delta coding and other techniques. They compete with zstd and brotli.
The author recommends level 3 (the default), 11, 12 or 13.
The README says decompression is safe on corrupt or malicious input. The decoder stops cleanly and never reads or writes outside its buffers. On x86-64 and ARM64, the decoders use hand-written assembly kernels.
The numbers
Author's run. These figures are from the README: lzbench on an Intel Core i7-14650HX with turbo disabled, one pinned core, compressing the 212 MB silesia.tar. Ratio is the compressed size as a percentage of the original, so lower is better.
| Codec / level | Compress | Decompress | Ratio |
|---|---|---|---|
| misa77 0.9.0 -3 | 71.9 MB/s | 5,909 MB/s | 42.59% |
| lz4 1.11.0 | 383 MB/s | 2,551 MB/s | 47.32% |
| misa77ec 0.9.0 -11 | 33.1 MB/s | 2,445 MB/s | 27.38% |
| zstd 1.5.7 -11 | 26.7 MB/s | 976 MB/s | 27.35% |
| misa77ec 0.9.0 -13 | 1.39 MB/s | 2,633 MB/s | 24.82% |
| zstd 1.5.7 -22 | 1.51 MB/s | 813 MB/s | 24.67% |
On this run, misa77 level 3 decoded about 2.3 times faster than LZ4 and produced smaller output. Level 13 decoded about 3.2 times faster than zstd's maximum level, with output about 0.15 percentage points larger. On the author's own 263 MB corpus of assets from 14 games, levels 12 and 13 also beat zstd -22 on ratio, whole-file and in 256 KiB or 64 KiB blocks.
Independent runs. misa77 is included in lzbench and TurboBench, two widely used open-source compression benchmarks. Version 0.9.0 was added to lzbench on Nov. 30, according to that project's commit log and changelog. TurboBench's automated run on an ARM Neoverse-N2 server, dated Dec. 4, shows a similar pattern with smaller gaps:
| TurboBench, Neoverse-N2, silesia.tar | Decompress | Ratio |
|---|---|---|
| misa77 level 3 | 5,180 MB/s | 42.60% |
| lz4 level 1 | 4,146 MB/s | 47.34% |
| misa77 level 13 | 2,088 MB/s | 24.82% |
| zstd level 22 | 1,054 MB/s | 24.67% |
That works out to about 1.25 times LZ4's decode speed at level 3 and about 2 times zstd's at level 13. lzbench's published results table, run on an AMD EPYC 9555P, still lists the older misa77 0.6.0. Those rows also decode well above LZ4 1.10.0's 3,832 MB/s on that machine.
The catches
- Compression is slow. On the author's Intel run, level 13 compressed at 1.39 MB/s and level 6 at 1.79 MB/s. These levels suit build pipelines, not real-time or streaming use.
- Memory. The README lists compressor working memory of up to 164 MB at level 13. Decompression at levels 11–13 allocates 1.4 MB of scratch space per call. Levels 1–6 need no decoder working memory.
- The format isn't stable. The README warns that the format may change unexpectedly while the project is at version 0.x. Data compressed today may need recompressing after an upgrade.
- Hardening is still in progress. The author says the code has been fuzzed locally under ASan and UBSan, with broader hardening ongoing. The CI workflow includes an ASan/UBSan build.
- Platform and tooling limits. The library needs a little-endian 64-bit system and a C++20 compiler. The
misaCLI handles single files only, with no pipes or directories, and needs POSIX (Linux or macOS). - One developer, built with AI help. All 21 commits since the 0.1.0 release on July 4 come from a single account. The README credits several Claude models with helping at every step.
TechMeasured read the code, documentation and commit history, and the lzbench and TurboBench result files. We did not build or run misa77, so every speed figure here is from the author or the benchmark projects. The Hacker News discussion page was not readable for this article.
Who should try it
misa77 is worth benchmarking if you ship read-heavy assets and decode time is a bottleneck. Game developers, CDN and static-site pipelines, and anyone packaging large read-only datasets are the obvious candidates. Run misa bench on your own files before switching. It prints size and speed for each level without writing anything to disk. The relative results changed between Intel and ARM, and your data will differ from silesia. Until the format reaches 1.0, keep a way to recompress from originals.
Sources
- GitHub — welcome-to-the-sunny-side/misa77 (README, misc/BENCHMARKS.md, docs, commit history and tags) github.com
- GitHub — inikep/lzbench (CHANGELOG and doc/lzbench24_sorted.md results) github.com
- GitHub — powturbo/TurboBench (linux-aarch64 benchmark results, Dec 4 2026 run) github.com
- Trendoday — Show HN, December 3, 2026 trendoday.com