You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(memory): optimize collection preallocation where capacity is known (#3895)
# Description
Following [this](#3826), this
work implements a first round of preallocating collections when their
size is known, to avoid unnecessary reallocations. This applies to
`Vec`, `HashMap` (with_capacity), and other dynamically sized
collections.
Preallocating memory improves efficiency and reduces overhead when the
final size is known.
Signed-off-by: Florian Valeye <[email protected]>
0 commit comments