Skip to main content

reserve_bounded

Function reserve_bounded 

Source
fn reserve_bounded<T>(v: &mut Vec<T>, additional: usize)
Expand description

reserve_exact with a len/64 floor, for merge-only arrays that grow a small batch at a time: bounds both copy frequency and permanent slack to ~1.6% (doubling would pin up to 2× as slack against the B/entry RAM gate).