Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: cache GUIDs without any unit IDs mappings for later removal #972

Merged
merged 1 commit into from
Aug 30, 2021

Conversation

johnnylam88
Copy link
Contributor

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.

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.
@johnnylam88
Copy link
Contributor Author

This pullup does require that #971 be pulled up as well to fix a Lua codegen bug that isn't caught by the automated TypeScript test harness

@Sidoine Sidoine merged commit 6b70923 into Sidoine:master Aug 30, 2021
@johnnylam88 johnnylam88 deleted the feat/guid-cache branch August 30, 2021 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants