Zstandard – Fast and efficient compression algorithm
1–10 of 27 posts
Re: Zstandard – Fast and efficient compression algorithm
#2Re: Zstandard – Fast and efficient compression algorithm
#3Re: Zstandard – Fast and efficient compression algorithm
#4It looks like this is the evolution of Zhuff, an experimental (closed-source) compressor [1]. It is basically LZ4 followed by a fast entropy coder, specifically FSE [2], that is a flavor of arithmetic coding that is particularly suited for lookup-table based implementations.
From a quick look at the source code it seems that the entropy stage uses 3 probability tables, one for literal bytes, one for match offsets, and one for match lengths. This is not dissimilar from gzip (which however uses Huffman).
EDIT: from a second look it seems that the LZ77 compression stage is basically LZ4: it uses a simple hash table with no collision resolution, which offers very high compression speed but poor match search. I'm surprised he didn't implement (yet?) an HC variant as for LZ4, it could even beat gzip compression rate with no overhead in decompression speed/memory requirements.
Re: Zstandard – Fast and efficient compression algorithm
#5What's the Weissman score for this?
Re: Zstandard – Fast and efficient compression algorithm
#6What's the Weissman score for this?
[1] http://spectrum.ieee.org/view-from-the-valley/computing/soft...
P.S. Yes, semi-fictional is a perfectly cromulent description of this metric.
Re: Zstandard – Fast and efficient compression algorithm
#7What's the Weissman score for this?
Do we really need to have this comment for any submission that mentions compression?
Re: Zstandard – Fast and efficient compression algorithm
#8Earlier quoted context omitted.
Do we really need to have this comment for any submission that mentions compression?
I guess so. It is also the top comment on r/programming for this (link also contains the corresponding blog entry of the author): https://www.reddit.com/r/programming/comments/2tibrh/zstd_a_...
Re: Zstandard – Fast and efficient compression algorithm
#9There is another variable that isn't mentioned here: memory efficiency when compressing/decompressing large files. For me it's an important feature of gzip.
Re: Zstandard – Fast and efficient compression algorithm
#10Google's Gipfeli (https://github.com/google/gipfeli) also aims for compression ratio and time to fall in between gzip -6 and the fastest algorithms. I've only glanced at code; think it includes a Snappy/LZO/LZ4-like repeat matcher using a hashtable, combined with simple-but-fast entropy coding where each literal input byte becomes 6, 8, or 10 bits.
Super cool that Collet's working on still-pretty-fast-but-better compression out in the open.