[Zlib-devel] [PATCH 12/13] deflate: add new deflate_quick strategy for level 1

John Reiser jreiser at BitWagon.com
Wed Nov 27 10:19:35 EST 2013


> +local z_const unsigned quick_len_codes[MAX_MATCH-MIN_MATCH+1] = {

> +local z_const unsigned quick_dist_codes[8192] = {

Thank you for this contribution.

Please also contribute the program(s) and script(s) that produced
those arrays, both the content and the textual representation.

This will serve as a useful redundancy for detecting errors, whether
inadvertent, malicious, random, or other.  Ideally, there should be
a separate program which algorithmically verifies the tables.
Also, some implementations may wish to encode the arrays differently.
In particular, the generator probably occupies less space in ROM,
and some implementations may wish to pack each entry into three bytes
(align(1) or separate arrays unsigned char[], unsigned short[].)
Further, the canonical table is not always the most desirable.

-- 





More information about the Zlib-devel mailing list