-
- Downloads
node cache: remove expired weak pointers from cache
Remove expired Node weak pointers regularly, in a way that ensures that: * every expired pointer gets eventually cleaned up * expired pointer ratio remains reasonably low * no cleanup pass blocks the node for too long, * impact on performance is negligible Impact on performance: Every N insertions, at most N nodes are tested by iterating the map -> performance impact in O(1) (constant).
Please register or sign in to comment