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

Add LRU cache for state manager #135

Merged
merged 3 commits into from
May 13, 2024
Merged

Add LRU cache for state manager #135

merged 3 commits into from
May 13, 2024

Conversation

inxilpro
Copy link
Contributor

@inxilpro inxilpro commented May 3, 2024

When replaying events, it's possible to load 100,000's of State objects into memory. This implements a least-recently-used ("LRU") cache for the state manager, that will automatically purge the oldest states from memory. This should help with replays.

@inxilpro inxilpro marked this pull request as ready for review May 6, 2024 14:50
@inxilpro inxilpro merged commit 8a4543a into main May 13, 2024
42 checks passed
@inxilpro inxilpro deleted the lru-cache branch May 13, 2024 13:37
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.

1 participant