-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Shrink process_obligations
#108380
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
Shrink process_obligations
#108380
Conversation
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit a4c544a237027c5761b6ff83c9c4f81f326ab697 with merge 91ec585233563416f2f29defed8c1366878f4284... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (91ec585233563416f2f29defed8c1366878f4284): 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.
CyclesThis benchmark run did not return any relevant results for this metric. |
Now we're in the tricky part, determining if the regression on that perf run is real, or bimodality in action, or what. I guess I'll do a few more perf runs and see if there's any consistency. @bors try @rust-timer queue include=keccak,cranelift |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit a4c544a237027c5761b6ff83c9c4f81f326ab697 with merge 9dbdd1d0cb395ff62bd2a1086351506e6e892b16... |
Also, hopefully #108253 will win back at least some of the possible losses here. |
Here are the local results I got, including some crates from outside the benchmark suite.
And with #108253 also applied:
|
☀️ 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 (9dbdd1d0cb395ff62bd2a1086351506e6e892b16): 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)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. |
a4c544a
to
735a7ad
Compare
#108253 has merged, let's try again. @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 735a7ad00519b83862498cc5075cb0768ffcc929 with merge 4d25994363fdb73137625b1eea5ca76e825b79ae... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (4d25994363fdb73137625b1eea5ca76e825b79ae): comparison URL. Overall result: no relevant changes - 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 benchmark run did not return any relevant results for this metric. 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.
|
Hmm, regression for |
Currently it is inlined twice into `needs_process_obligation`, which is excessive. Splitting it into inline and uninlined halves lets us have more control.
This micro-optimization made sense before 0 and 1 were special-cased within this function, but it's now much less important.
And add some useful comments elsewhere.
735a7ad
to
2d8d5b7
Compare
Once more with feeling. @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 2d8d5b7 with merge 7c589d211fab50bf2f306c823c966da1180917b7... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (7c589d211fab50bf2f306c823c966da1180917b7): comparison URL. Overall result: no relevant changes - 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 benchmark run did not return any relevant results for this metric. 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. |
@nnethercote is this supposed to be in S-waiting-on-review? I cannot tell from the comment thread what its current state is. (I.e. I cannot tell whether you are continuing to iterate, or are done and want feedback) @rustbot label: +S-waiting-on-author -S-waiting-on-review |
waiting-on-author is appropriate, thanks. |
I can't get this to work without regressing perf on some benchmarks. |
r? @ghost