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

Garbage collection for Versioned models #17

Open
misson20000 opened this issue Nov 12, 2024 · 0 comments
Open

Garbage collection for Versioned models #17

misson20000 opened this issue Nov 12, 2024 · 0 comments

Comments

@misson20000
Copy link
Owner

We need to keep all versions of a model around that are newer than the oldest one with a live reference to it, regardless of whether those interevening versions have live references to them or not, because things that observe models need to be able to step through changes and those intervening versions one at a time. Currently, we just keep around every version of the model that has ever existed in a big singly-linked list. This is bad and a memory leak. Need to come up with a more clever way to manage this memory.

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

No branches or pull requests

1 participant