-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add calling
vacuum
to shrink_to and shrink_to_fit
HashMap::shrink_to_fit states "Shrinks the capacity of the map as much as possible.". Often, this is called to free up unused memory allocations. By calling vacuum here, this aligns with the intent This also adds shrink_to and shrink_to_fit to ExpiringSet
- Loading branch information
Brian Caswell
committed
Jul 15, 2024
1 parent
ce656cf
commit e69e4fa
Showing
1 changed file
with
19 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters