inikep / lizard

Lizard (formerly LZ5) is an efficient compressor with very fast decompression. It achieves compression ratio that is comparable to zip/zlib and zstd/brotli (at low and medium compression levels) at decompression speed of 1000 MB/s and faster.
Other
644 stars 40 forks source link

LZ5_compress_HC max level in headers #3

Closed GregSlazinski closed 8 years ago

GregSlazinski commented 8 years ago

The headers say:

      compressionLevel : Recommended values are between 4 and 9, although any value between 0 and 16 will work.
                         0 means "use default value" (see lz5hc.c).
                         Values >16 behave the same as 16.

However the LZ5HC_MAX_CLEVEL is defined as 15

Also:

 * Default value is 14, for 16KB, which nicely fits into Intel x86 L1 cache
 */
#define LZ5_MEMORY_USAGE 20

it says default is 14 but defined as 20

inikep commented 8 years ago

A good catch. Thanks for info. Fixed here: https://github.com/inikep/lz5/commit/0ba80d7516ea4dab0cdc584e7bfd085fc5e98301