Skip to main content

growth_step

Function growth_step 

Source
fn growth_step(current: u32, end: u32) -> u32
Expand description

The element count to grow current to so it covers end.

Growth is geometric (1.5x) so repeated growth does not reallocate every time, and never rounds below the minimum the pool needs.