[Zlib-devel] stored-block size limit?
Mark Adler
madler at alumnus.caltech.edu
Tue Apr 9 11:43:00 EDT 2002
On Tuesday, April 9, 2002, at 08:10 AM, Greg Roelofs wrote:
> can you explain why the results of the Z_HUFFMAN_ONLY strategy are
> (empirically) completely independent of the compression level?
The compression level only affects how hard deflate looks for matching
strings. Since Huffman-only doesn't use matching strings at all, the
compression level has no effect.
memLevel will have an effect on Huffman-only, since it changes the size
of blocks with the same Huffman codes. The effect of this is not
obvious. Smaller blocks have more relative overhead for the code
descriptions, but on the other hand they adapt to changing data more
rapidly, possibly resulting in more optimum code selection.
mark
More information about the Zlib-devel
mailing list