Show HN: misa77 – Up to 3x faster decompression than zstd, with better ratios
- orlp - 17986 sekunder sedanI'm also working on a better compression algorithm. It decompresses up to 6x faster than zstd while having roughly the same compression ratio and compression speed. Especially the latter misa77 suffers on, e.g. zstd -2 compresses at 350 MB/s on lzbench on AMD (https://inikep.github.io/lzbench/), while misa77 sits at ~10 MB/s for a similar rate.
My reference implementation is also written in (almost entirely safe) Rust, which I honestly think is a table-stakes requirement for a new compression algorithm anno 2026. With all the recent attacks on insecure compression implementations I think introducing a new compression algorithm written in a memory-unsafe language is a non-starter.
Hoping to have a release-ready version at the end of December, when I have some more time to polish it.
- weitendorf - 16819 sekunder sedanI'm gonna try this later. I just got a 5x (single core, 5MB/s) - 10x (dual core 10MB/s) speedup on brotli in the last few days. It's been really surprising to realize how much storage and traffic bandwidth is going to waste because of unoptimized transit.
brotli -11 is so slow nobody probably uses it right now but at 10x speed it actually becomes pretty ok. It's a more efficient encoding than zstd (and gzip by far) at their max compression settings.
Haven't got a writeup yet but: https://claude.ai/share/0e8bf6c0-6d64-4a34-8f97-37ccbae19732
Brotli/zstd are kind of in a class of their own in my view because of their direct browse integration and support. That's why I focused on brotli specifically. Didn't know so many others on hn were also working on this rn.
I actually just did it in x86_64 but if you start there it's trivial to wrap that in C/Go/etc these days. Here's the Go+C shim: https://claude.ai/share/57ddeb9a-36bf-4690-99d5-621147b15a77
- zX41ZdbW - 1179 sekunder sedanTested it on real datasets: https://github.com/ClickHouse/ClickHouse/pull/137004#issueco...
- powturbo - 14726 sekunder sedanDaily Multiplatform benchmarks available at: https://github.com/powturbo/TurboBench/blob/master/turbobenc...
mis77, zxc, zstd, minlz, ...
TurboBench Compression Benchmark : https://github.com/powturbo/TurboBench
- iagiagiag - 6837 sekunder sedanThanks for your work. I have an even more specific need which is to compress billions of very small messages (<200 chars). Zstd is currently giving the best results (ratio ~1:3). Can your algorithm handle that well with a dictionary?
- icauroboros - 18727 sekunder sedanInteresting, I was looking for something like this about few months ago for my own "write-once, read-many" case optimized delta based store library https://github.com/icauro/Gutch, but there was not much other than lz4 and zstd. I would like to test it, if there are rust bindings for it.
- numericOverflow - 11518 sekunder sedan>Slow compression is the obvious tradeoff that we make to achieve the above.
So what is your observed compression speed penalty vs benchmarks? This is understandable, but please show your counterbalance to achieve these decomp benefits.
- ramon156 - 3199 sekunder sedanSee, this is good use of AI. all i could spot was a benchmark done by an LLM. This is verify-able and the readme was clear. What a breath of fresh air..
- user20180120 - 11739 sekunder sedanHow does it compare with lrzip ? lrzip is very fast at decompression - bottleneck is the I/O of where you are decompressing to.
- Someone - 17014 sekunder sedanSo, is the speedup specific to the compression format or can (parts of) it applied to the zstd code base, too? If so, how much would that speed up zstd? At what cost (CPU load, memory usage)?
- mgaunard - 2234 sekunder sedanso many rust fanboys in this thread.
Guaranteeing memory safety isn't that useful; guaranteeing correctness is. And no language gives you that.
- atiedebee - 11897 sekunder sedanVery cool project, I wonder why levels 4 and 5 decompress slower than 3 and 6?
- jauntywundrkind - 17684 sekunder sedanOpenzl by the zstd author also speeding up. https://www.phoronix.com/news/OpenZL-0.3-Released
Zxc has similar compression but very fast. https://github.com/hellobertrand/zxc
Couple others out there too!
- jmakov - 16136 sekunder sedanShould probably include PCodec when comparing to others.
- prymitive - 14969 sekunder sedan> write-once, read-many niche
Is that really a niche?
- benchleo - 7968 sekunder sedan[dead]
- felixmarlowe - 7602 sekunder sedan[dead]
- djawlagml - 13487 sekunder sedan[dead]
- VeejayRampay - 19702 sekunder sedanthe usual caveat being that this is a project by one dev with a few hundred stars, as opposed to a big project with immense adoption and recognition, backed by a big organization and tons of maintainers.
still, good for the author trying to challenge the status quo and best of luck on the long run.
Nördnytt! 🤓