-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Create a query cache for DefId #108649
Create a query cache for DefId #108649
Conversation
r? @wesleywiser (rustbot has picked a reviewer for you, use r? to override) |
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 18a3ca059d4a99fa0430a44d3d0b48547e038032 with merge 8775a3d31421b553c1b7985b0ef0bb31e2ab121e... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (8775a3d31421b553c1b7985b0ef0bb31e2ab121e): comparison URL. Overall result: ❌ regressions - ACTION NEEDEDBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
|
The bootstrap regressions are a bit high, so it probably make sense to re-evaluate this if #108638 lands. I also ran unchanged incremental benchmarks locally to see if any of the instruction regressions turned into wall time regressions. They seem to be reasonably neutral.
|
Do you have a measurement of the data pattern in this cache? Which proportion of local/non-local def-ids? Could you explain why you chose to shard along CrateNum, instead of a |
This no longer seems to be an improvement:
I don't have data on non-local vs. local def-ids, but I did previously try specializing only the storage for local def-ids, which wasn't an improvement. |
This adds a specialized cache for
DefId
which stores aIndexVec
of hashmaps reducing the size of the stored hashmap key.