Expand description
Module defining memory reclaim policies.
Structs§
- Auto
- The
Auto
policy reclaims closed nodes whenever the utilization falls below 75%. - Auto
With Threshold - The
AutoWithThreshold
policy reclaims closed nodes whenever the utilization falls below a certain threshold which is determined by the constant parameterD
. - Lazy
- The
Lazy
policy never reclaims closed nodes.
Traits§
- Memory
Policy - Trees use a pinned vector (
PinnedVec
) as its underlying storage. Deletions from the tree are lazy in the sense that the nodes are closed; not removed from the vector. Therefore, deletions leave a gap in the underlying collection. How these nodes will be reclaimed is determined by theMemoryPolicy
.