-
Notifications
You must be signed in to change notification settings - Fork 181
perf: Reduce memory usage by deduplicating type information #803
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
Conversation
We were storing the type information, 3 words wide, for each memo in each slot, while it is always constant wrt. the ingredient (different slots of the same ingredients will always have the same memos in the same order). This introduces some more unsafety, and the result wasn't as fast so I also had to use some lock-free structures, but the result is worth it: this shaves off 230mb from rust-analyzer with new Salsa.
✅ Deploy Preview for salsa-rs canceled.
|
CodSpeed Performance ReportMerging #803 will degrade performances by 6.69%Comparing Summary
Benchmarks breakdown
|
0fdb778
to
13a448e
Compare
13a448e
to
ea12b6e
Compare
Given that this has the same performance and less unsafe code, let's close #649 and merge this. |
I can push my branch to yours if you want to retain the PR authorship |
I don't care. |
I'll go ahead and merge this given most of the work was by Chayim which I have reviewed. Perf is within noise and the memory savings are real. We'd like to upgrade our salsa today where having this in it would be pretty nice. |
No description provided.