Skip to main content

weigh

Function weigh 

Source
fn weigh(value: &Option<Value>) -> usize
Expand description

Roughly how many bytes of text value holds.

Not the allocator’s answer — a Value’s own words are not counted, and neither is a map’s or a vector’s spare capacity. It is the record’s size to within a constant factor, which is what KEEP_BELOW is a threshold on.