internment
internment copied to clipboard
Add shrink_to_fit to ArcIntern
As the title says, otherwise the memory might keep growing forever.
The following code can be used:
/// Shrinks underlying container's memory to only fit the currently contained items
pub fn shrink_to_fit() {
Self::get_container().shrink_to_fit();
}
Would love to open the PR myself. Thank you!