Skip to main content

COMPRESSION_THRESHOLD

Constant COMPRESSION_THRESHOLD 

Source
pub const COMPRESSION_THRESHOLD: usize = 256;
Expand description

Minimum block body size (in bytes) before per-block compression is attempted.

Blocks smaller than this threshold are always stored uncompressed because zstd framing overhead (~13 bytes for the frame header) outweighs any savings on very small inputs.

Default: 256 bytes.