Skip to main content

DEFAULT_COMPRESS_MIN_DEPTH

Constant DEFAULT_COMPRESS_MIN_DEPTH 

Source
const DEFAULT_COMPRESS_MIN_DEPTH: u8 = 1;
Expand description

The default compression depth floor: fresh (depth 0) bodies spill uncompressed.

A fresh chunk is consumed by its first merge with certainty, so compressing it can never save pool bytes for longer than one merge cadence and always costs a full encode plus decode. Depth 1 and beyond have survived a merge and wait geometrically longer for the next, so their compression amortizes.