misa77: a compressor that decompresses up to 3x faster than zstd
misa77 is an LZ-based compressor for data that is written once and read many times. It aims for very high single-threaded, in-memory decompression speed, good compression ratios relative to decode speed, and constant memory use during compression regardless of input size. Slow compression is the trade-off it accepts. Decompression is designed to stay safe on corrupt or malicious input: the decompressor exits gracefully and does not access out-of-bounds memory.
In the author's benchmarks on an Intel i7-14650HX, run single-threaded with lzbench, misa77 compresses somewhat slower than its competitors, gets similar ratios, and decodes much faster. Levels 3-6 decode faster than LZ4, and level 6 has smaller ratios but decodes about 2x faster. Levels 11-13 reach ratios similar to zstd's levels 11 to 22 and decode about 2.5 to 3 times faster. On a corpus of about 263 MB of game assets, levels 12 and 13 get better ratios than zstd.
Levels 1-6 use simple LZ compression, while levels 11-13 add entropy coding and delta coding. The author recommends levels 3, 11, 12 or 13, depending on requirements. The library needs a C++20 compiler, CMake 3.20 or newer, and a little-endian 64-bit system, and the CLI needs POSIX.
Repository misa77 github.com
LZ-based compressor for write-once, read-many data, tuned for very fast single-threaded decompression with safe handling of corrupt input.
Read the original github.comDiscussion
Discussion
Commenters compare misa77 with zstd, brotli, PCodec, zxc and OpenZL. One commenter says misa77 compresses much more slowly than zstd -2 (about 10 MB/s against 350 MB/s on lzbench on AMD), another asks how large the compression speed penalty is, and a third doubts that write-once, read-many is a real niche.
Links from the post and discussion
- TurboBench, a benchmark suite where misa77 is also run github.com
- zxc, a fast compressor suggested by a commenter github.com
- OpenZL 0.3 release news, mentioned by a commenter phoronix.com
- lzbench results page with codec speed comparisons inikep.github.io
Sources
-
GitHub
Show HN: misa77 – Up to 3x faster decompression than zstd, with better ratios
-
KRGeekNews KO
Show HN: misa77 - zstd보다 최대 3배 빠른 압축 해제와 더 높은 압축률
Terms
- entropy coding — A group of methods that store data using fewer bits for the values that occur most often, so the output is smaller.
- delta coding — A method that stores the difference between each value and the previous one instead of storing every value in full.
- lzbench — A benchmark tool that measures the speed and compression ratio of many compression codecs.


