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

prune old rooms from state #13

Open
ssube opened this issue May 13, 2021 · 1 comment
Open

prune old rooms from state #13

ssube opened this issue May 13, 2021 · 1 comment
Assignees
Labels
scope/state world state management status/new issues that have not been addressed yet type/feature
Milestone

Comments

@ssube
Copy link
Owner

ssube commented May 13, 2021

Remove old rooms from the state struct when it reaches the configured limit. Remove the oldest rooms first, by visitation time/turn.

@ssube ssube added status/new issues that have not been addressed yet type/feature labels May 13, 2021
@ssube ssube added this to the v1.5 milestone May 13, 2021
@ssube ssube self-assigned this May 13, 2021
@ssube ssube modified the milestones: v1.5, v2 May 15, 2021
@ssube ssube added the scope/state world state management label May 15, 2021
@ssube ssube modified the milestones: v1.2, v1.3 May 19, 2021
@ssube
Copy link
Owner Author

ssube commented May 23, 2021

This should be handled with an ordered and limited-size list of visited IDs in the state service. When focus changes, add to the list, and remove items that exceed the limit. When items are removed, remove the corresponding rooms (with actors and items) from state. Ensure they will no longer receive script events or be written into the state file, and are eligible for GC.

@ssube ssube modified the milestones: v1.3, v1.4, v1.5 May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope/state world state management status/new issues that have not been addressed yet type/feature
Projects
None yet
Development

No branches or pull requests

1 participant