-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Don't destructure args tuple in format_args! #90485
Conversation
@m-ou-se I picked you as a reviewer for this and #90131 since you wrote the Clippy issue, but feel free to reassign. This will conflict with rust-lang/rust-clippy#7906. We probably want to merge and sync that PR first so that I can handle the conflict here. |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit bf795ffb04b14458dc43234251a7b729d811da08 with merge f629fd83edbea13d29736b99c0725620a9af49f4... |
☀️ Try build successful - checks-actions |
Queued f629fd83edbea13d29736b99c0725620a9af49f4 with parent db062de, future comparison URL. |
Finished benchmarking commit (f629fd83edbea13d29736b99c0725620a9af49f4): comparison url. Summary: This change led to small relevant mixed results 🤷 in compiler performance.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking 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 led 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 |
Looks good to me! One question: Why |
|
@bors r+ |
📌 Commit bf795ffb04b14458dc43234251a7b729d811da08 has been approved by |
⌛ Testing commit bf795ffb04b14458dc43234251a7b729d811da08 with merge d4a8cbe2d9cd9d7fd9d57f55c2aa29a4a82a129f... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
bf795ff
to
9f6a58e
Compare
@bors r=m-ou-se |
📌 Commit 9f6a58e has been approved by |
⌛ Testing commit 9f6a58e with merge 71a514c98a4dc779136e50b01e2d85d1529a8ddc... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
@flip1995 can I get your approval on that last commit for Clippy? |
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.
Clippy changes LGTM 👍
@bors r=m-ou-se |
📌 Commit 8e21f3a has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (60952bc): comparison url. Summary: This change led to large relevant mixed results 🤷 in compiler performance.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Next Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression |
@camsteffen @m-ou-se this seems to have caused some compiler performance issues. The impacted query seems to be That being said, none of the code looked suspicious to me so we may have to run something like cachegrind to really find out. Any ideas before we investigate further? |
No ideas here. The complexity savings on Clippy's end is rather small so it might not justify the regression. I've noticed a couple times now that the final automated perf run shows significantly worse results than the manual run. Is there a particular reason for that ? |
There wouldn't be any reason for this other than runs are done by fast forwarding the PR's commits on to master and the subsequent changes on master done between when a try run is performed and when the PR is merged can change performance outcomes. I don't think this is always the case though. |
Don't destructure args tuple in format_args! This allows Clippy to parse the HIR more simply since `arg0` is changed to `_args.0`. (cc rust-lang/rust-clippy#7843). From rustc's perspective, I think this is something between a lateral move and a tiny improvement since there are fewer bindings. r? `@m-ou-se`
This allows Clippy to parse the HIR more simply since
arg0
is changed to_args.0
. (cc rust-lang/rust-clippy#7843). From rustc's perspective, I think this is something between a lateral move and a tiny improvement since there are fewer bindings.r? @m-ou-se