-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: cache GUIDs without any unit IDs mappings for later removal (#972)
Keep a cache of the last 100 unused GUIDs that no longer have unit IDs associated with them. Once they are evicted from the cache, remove all other information tracked by the `guid` module for those GUIDs. This prevents the number of GUID-to-name mappings from growing without bound, and frees up some memory for garbage collection.
- Loading branch information
1 parent
19c7d5b
commit 6b70923
Showing
1 changed file
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters