internment icon indicating copy to clipboard operation
internment copied to clipboard

Add shrink_to_fit to ArcIntern

Open ofek-sha opened this issue 2 years ago • 0 comments

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!

ofek-sha avatar Nov 03 '23 08:11 ofek-sha