Skip to main content

SWEEP_MIN_LEN

Constant SWEEP_MIN_LEN 

Source
const SWEEP_MIN_LEN: usize = 64;
Expand description

Heap length below which the sweep never runs.

Below this many entries the residue is bounded and cheap (~40 bytes a slot), and rebuilding a short heap on a timer would trade that bounded residue for an unbounded retain rate.