-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Reduce memory usage by using global Arc
-based interning
#8284
Conversation
Added interning of more types. Memory impact looks roughly like this:
|
Arc
-based interning
Nice, we should try that for types as well! |
bors r+ |
8284: Reduce memory usage by using global `Arc`-based interning r=jonas-schievink a=jonas-schievink This saves around 50 mb when running `analysis-stats` on r-a itself. Not a lot, but this infra can be easily reused to intern more stuff. Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
Timed out. |
bors retry |
8284: Reduce memory usage by using global `Arc`-based interning r=jonas-schievink a=jonas-schievink This saves around 50 mb when running `analysis-stats` on r-a itself. Not a lot, but this infra can be easily reused to intern more stuff. Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
Build failed: |
I wonder if we might want do something like this, but without interning, for basically everything? I still have a picture in my head where all things of the same type are co-allocated in the same table, instead of being owned by parents. |
bors r+ |
changelog fix |
This saves around 50 mb when running
analysis-stats
on r-a itself. Not a lot, but this infra can be easily reused to intern more stuff.