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

features: stuff for rust-analyzer #656

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

davidbarsky
Copy link
Contributor

@davidbarsky davidbarsky commented Jan 16, 2025

...this was accidentally opened when my cat walked over the keyboard.

davidbarsky and others added 7 commits January 15, 2025 09:40
Or "supertypes" as they are called in salsa-rs#578.

They are of the form:
```
enum Enum {
    Input(Input),
    Interned(Interned),
    ...
}
```
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.
Copy link

netlify bot commented Jan 16, 2025

Deploy Preview for salsa-rs canceled.

Name Link
🔨 Latest commit 7c52974
🔍 Latest deploy log https://app.netlify.com/sites/salsa-rs/deploys/678970ec215b7d000841fdae

@davidbarsky davidbarsky changed the title Chayim david lukas/salsa perf improvements features: all the stuff that rust-analyzer needs to use. Jan 16, 2025
@davidbarsky davidbarsky changed the title features: all the stuff that rust-analyzer needs to use. features: stuff for rust-analyzer Jan 16, 2025
Copy link

codspeed-hq bot commented Jan 16, 2025

CodSpeed Performance Report

Merging #656 will degrade performances by 21.91%

Comparing davidbarsky:chayim-david-lukas/salsa-perf-improvements (7c52974) with master (e4d65a6)

Summary

❌ 2 regressions
✅ 7 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark master davidbarsky:chayim-david-lukas/salsa-perf-improvements Change
new[Input] 18.5 µs 23.7 µs -21.91%
new[InternedInput] 21.1 µs 25.4 µs -17.07%

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

Successfully merging this pull request may close these issues.

3 participants