Skip to main content

size_class

Function size_class 

Source
pub fn size_class(bytes: usize) -> usize
Expand description

Round a workspace request up to the next power of two ≥ 1 KiB. Bucketing by power-of-two limits the long-tail of unique sizes the pool tracks.