shrink_to_fit

Function shrink_to_fit 

Source
pub fn shrink_to_fit()
Expand description

Reduces the memory usage by shrinking the interner’s capacity to fit exactly the number of currently interned strings.

This operation may reallocate internal storage, it locks the global pool to collect space, so use it with caution since it may decrease the performance of you application.

§Example

use asylum;

asylum::shrink_to_fit();