Avoid hacky workaround for with_capacity #5
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
question
Further information is requested
When we have to allocate a new table, we want to continue with factor-of-two resizing when possible. Unfortunately,
hashbrown::RawTable::with_capacity
(I think) allocates more or less the capacity we give it, rather than rounding up. So, we resort to this workaround:griddle/src/lib.rs
Lines 746 to 749 in c68eb4c
It'd be nice to get rid of that. Benchmarks may tell us that
with_capacity
works just fine..The text was updated successfully, but these errors were encountered: