Skip to main content

MIN_ENTRIES

Constant MIN_ENTRIES 

Source
pub const MIN_ENTRIES: usize = 256;
Expand description

Smallest permitted hash-table entry count: 256 (an 8-bit index). Below this the hash collapses 5 input bytes onto too few buckets to find matches, so the compressor degrades to emitting literals. Matches C lz4’s floor (LZ4_MEMORY_USAGE_MIN = 10 -> 1 << (10 - 2) = 256-entry table).