‹ Post details

Show HN: misa77 – Up to 3x faster decompression than zstd, with better ratios

  • github.com
  • By nonadhocproblem
  • 276 points
  • 91 comments

Discussion

Source links

Showing up to 12 top-level comments in Hacker News order.

  1. orlp
    I'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.
  2. weitendorf
    I'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
  3. somewatson
    For most people, I think that compression just needs to have data integrity. In other words, it just needs to work. Zip, unzip. Tar, untar. But, I've always wondered why there aren't more multi-core implementations of compression programs. Multi-core processing and servers are more abundant than ever. I feel like that's a solid win. Everything else is just an optimization.
  4. powturbo
    Daily Multiplatform benchmarks available at: https://github.com/powturbo/TurboBench/blob/master/turbobenc... mis77, zxc, zstd, minlz, ... TurboBench Compression Benchmark : https://github.com/powturbo/TurboBench
  5. zX41ZdbW
    Tested it on real datasets: https://github.com/ClickHouse/ClickHouse/pull/137004#issueco...
  6. iagiagiag
    Thanks 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?
  7. tnelsond4
    This is amazing. I had a web app that uses zstd and converting it to misa77ec makes it load quite a bit faster and the files are a little smaller. The wasm binaries are also smaller for the encoder, a bit smaller for the decoder maybe, let me double check.
  8. icauroboros
    Interesting, 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.
  9. numericOverflow
    >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.
  10. prymitive
    > write-once, read-many niche Is that really a niche?
  11. manlymuppet
    I would like to see more metrics involving time taken for compression. One can always set the preset level in zstd or other similar compressors to high numbers, but the result is usually unusably slow.
  12. Someone
    So, 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)?

Source links