Skip to main content

sample_slices

Function sample_slices 

Source
pub fn sample_slices(len: usize) -> usize
Expand description

Number of slices the sample of a block of len bytes has: one per 128 KiB, at least 8 (a 1 MiB block gives 8 slices = 64 KiB) and at most 32 (256 KiB at 4 MiB and above). A block prefix must not be used instead: blocks concatenate chunks of several files and a prefix predicts the wrong codec on a third of the benchmark blocks (measured, see the plan).