Show HN: misa77 – Up to 3x faster decompression than zstd, with better ratios (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
Some of the inefficiencies (for instance, the compressor's allocated state not persisting across calls) are definitely addressable but overall, clickhouse is probably not that great of a fit, as encode speeds matter to it.
The data distribution also isn't the best as I've made several choices that help compress game data better, but hurt here. Performance on textual data (amazon_reviews) looks quite good.
zstd -1 being close on ratio to level 11 at 64 kb is also quite surprising, as in my testing, level 11's ratio is much better on most data (even with 64 kb blocks).
Another thing is the architecture, the gap between misa77 and zstd/zxc is typically widest on x86-64 (linux) and apple silicon, which wasn't tested.
Replies (1)
Replies (1)
Beating LZ4 is literally the least surprising claim here, and you can reproduce the results yourself through lzbench, turbobench, or even a custom harness. Both of the aforementioned harnesses also publish benchmark results which clearly demonstrate this gap.
- lzbench: https://github.com/inikep/lzbench#benchmarks
- turbobench: https://github.com/powturbo/TurboBench/blob/master/turbobenc...
These speedups are possible by separating command and literal streams and a bunch of other tricks, which allows for better OoO execution. I also reduce branches by reducing maximum match length to 32, and enforcing a minimum match distance of 32 (so we can resolve matches with a single unconditional vector copy).
Replies (1)
Replies (1)
Closing remarks:
- LZ4 is way slower than memcpy, I don't understand why you're making stuff up lol.
- The clickhouse benchmarks clearly show (on non-silesia data) that misa77 is way faster than LZ4 while attaining similar ratios on most data.
- Selkie is faster than LZ4 and compresses much better on most data.