Top
Best
New

Posted by nonadhocproblem 15 hours ago

Show HN: misa77 – Up to 3x faster decompression than zstd, with better ratios(github.com)
247 points | 81 commentspage 2
manlymuppet 7 hours ago|
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.

nonadhocproblem 7 hours ago|
There are tables in the readme with compression time listed for each misa77 level and competitors.

But I would warn that if compression speed matters a lot (if, say, single digit/low tens MB/s isn't acceptable), then misa77 probably isn't the right compressor for you. There are several use cases where these painfully slow compression times are acceptable in exchange for ratio and decode speed, and misa77 targets these. The industry standard for compressing game assets is Oodle, which makes these exact tradeoffs, and misa77 is primarily intended to be a competitor to it.

prymitive 11 hours ago||
> write-once, read-many niche

Is that really a niche?

nonadhocproblem 10 hours ago||
I do think it's a niche as the most popular use case is likely for game assets, where a closed source codec called Oodle (owned by epic games) has reigned supreme for a decade, and there has been little effort in trying to achieve open-source parity with its performance.

I would publish benchmarks against oodle, but their licensing is quite unclear about whether this is allowed, and I don't want to take risks for no reason.

poly2it 10 hours ago||
Server-rendered content is often write-many, if you consider writing mostly similar data multiple times to be "many".
Someone 12 hours ago||
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)?
nonadhocproblem 12 hours ago|
It uses a different compression format from zstd, and I suspect that most of the speedups won't cleanly transfer. Broadly speaking, the speedup can be attributed to the format being much friendlier to properties of modern cores that older codecs probably didn't plan for (strong OoO execution, big ROBs and caches, etc).
atiedebee 10 hours ago||
Zstd does make use of out of order execution, the author has a really nice blog where they explain some of the techniques they used: https://fastcompression.blogspot.com/2015/07/huffman-revisit...
kobecupens 4 hours ago||
Thats crazy will try it out and compare
user20180120 10 hours ago||
How does it compare with lrzip ? lrzip is very fast at decompression - bottleneck is the I/O of where you are decompressing to.
jauntywundrkind 12 hours ago||
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!

nonadhocproblem 12 hours ago||
Comparisons against zxc have been included in the README.

At the higher compression end (levels 11-13), minlz is the most relevant competitor. https://github.com/minio/minlz

andrepd 11 hours ago||
Openzl is not a set and forget tool, it's more of a tool factory. You need to feed it a schema to generate a compressor tailored to that schema, which is just not applicable to many types of data.
nukanse 7 hours ago||
Compression speed also matters. Level 1 looks good
atiedebee 11 hours ago||
Very cool project, I wonder why levels 4 and 5 decompress slower than 3 and 6?
jmakov 12 hours ago||
Should probably include PCodec when comparing to others.
ramon156 8 hours ago|
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..
More comments...