logoalt Hacker News

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

145 points • by nonadhocproblem • today at 8:07 AM • 44 comments • view on HN

Comments

orlp • today at 10:34 AM

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.

➕ show 6 replies
weitendorf • today at 10:53 AM

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

➕ show 2 replies
powturbo • today at 11:28 AM

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

iagiagiag • today at 1:40 PM

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?

icauroboros • today at 10:22 AM

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.

➕ show 2 replies
numericOverflow • today at 12:22 PM

>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.

➕ show 1 reply
ramon156 • today at 2:40 PM

See, 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 • today at 12:18 PM

How does it compare with lrzip ? lrzip is very fast at decompression - bottleneck is the I/O of where you are decompressing to.

Someone • today at 10:50 AM

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)?

➕ show 1 reply
mgaunard • today at 2:57 PM

so many rust fanboys in this thread.

Guaranteeing memory safety isn't that useful; guaranteeing correctness is. And no language gives you that.

atiedebee • today at 12:16 PM

Very cool project, I wonder why levels 4 and 5 decompress slower than 3 and 6?

jauntywundrkind • today at 10:39 AM

Openzl 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!

➕ show 2 replies
jmakov • today at 11:05 AM

Should probably include PCodec when comparing to others.

prymitive • today at 11:24 AM

> write-once, read-many niche

Is that really a niche?

➕ show 2 replies
benchleo • today at 1:21 PM

[dead]

felixmarlowe • today at 1:27 PM

[dead]

djawlagml • today at 11:49 AM

[dead]

VeejayRampay • today at 10:05 AM

the 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.

➕ show 1 reply