-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Move dep graph methods to DepGraphData to avoid branches and unwrap
s
#108417
Conversation
5078926
to
6b4f27c
Compare
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 6b4f27c51351ef768bb7ddc3aff09e982afffb21 with merge bff7140d585f96ac6c42e840640b8ea26053e262... |
I guess maybe the rust-timer invocation was premature, since it'll also reflect any perf from those other commits. Anyways, let's see what perf says regardless. |
☀️ Try build successful - checks-actions |
1 similar comment
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (bff7140d585f96ac6c42e840640b8ea26053e262): comparison URL. Overall result: ❌✅ regressions and improvements - 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.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not an official reviewer but here's some feedback
Could you remove all-but-last commits from this PR? This refactor makes a lot of sense, and I'd like to merge it. But it's perf effect is polluted by the other commits. |
6b4f27c
to
60b71e2
Compare
This comment has been minimized.
This comment has been minimized.
This can get a proper perf run now. |
(note that as a former t-compiler member you can ask for your status and bors rights back) @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit df7a50e929c7f5bd575a9f4e1ba0b2c60308620e with merge 4afbe51acc449e8835d24531702a6a71c5e97c04... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
☀️ Try build successful - checks-actions |
Finished benchmarking commit (4afbe51acc449e8835d24531702a6a71c5e97c04): comparison URL. Overall result: ✅ improvements - no 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. @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.
CyclesThis benchmark run did not return any relevant results for this metric. |
@rustbot label -S-waiting-on-author +S-waiting-on-review |
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (542ed2b): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression 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.
|
This moves methods from
DepGraph
toDepGraphData
which makes the code a bit cleaner since the dep graph is unconditionally available. It also changestry_execute_query
to only branch on dep graph availability once, removing unnecessary branches andunwrap
s.This is based on #108134 and #108167.
Performance impact of just the last commit:
r? @cjgillot