-
Notifications
You must be signed in to change notification settings - Fork 151
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 #7
Comments
It might be useful to GC dependencies of roots as well. For example, when processing a rarely-changed crate, you might want to parse all files, compute available items and symbol indexes, and then throw-away intermediate results (syntax trees) to save memory. |
Yes, good point. |
So what are the options we need here:
If trying to save memory, there are a few more options:
|
We can also implement LRU using the existing |
As currently implemented, old query results are going to pile up in the hash tables. We need a method that allows users to specify a root set of query results -- that is, queries plus keys. We can then trace all the values reachable from there and evict the rest.
The text was updated successfully, but these errors were encountered: