Fields
huffman_only = -2,
huffman_only disables Lempel-Ziv match searching and only performs Huffman entropy encoding. This mode is useful in compressing data that has already been compressed with an LZ style algorithm (e.g. Snappy or LZ4) that lacks an entropy encoder. Compression gains are achieved when certain bytes in the input stream occur more frequently than others.
Note that huffman_only produces a compressed output that is RFC 1951 compliant. That is, any valid DEFLATE decompressor will continue to be able to decompress this output.
default_compression = -1,
Same as level_6
no_compression = 0,
Does not attempt any compression; only adds the necessary DEFLATE framing.
best_speed = 1,
Prioritizes speed over output size, based on Snappy’s LZ77-style encoder
level_2 = 2,
level_3 = 3,
level_4 = 4,
level_5 = 5,
level_6 = 6,
level_7 = 7,
level_8 = 8,
best_compression = 9,
Prioritizes smaller output size over speed