-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 generate unecessary &&self.field
in deriving Debug
#107599
Conversation
r? @lcnr (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 a61ba621df635d2b44336422189d813a698461b0 with merge 0c567e3f492ab5edc9a8b5b787574aa6a2e37c7b... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
r? @nnethercote |
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.
Looks reasonable, just some nitpicks. Thanks.
Finished benchmarking commit (0c567e3f492ab5edc9a8b5b787574aa6a2e37c7b): 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.
|
a61ba62
to
d8651aa
Compare
I strongly suspect those perf results are noise, this change really shouldn't impact perf on those benchmarks in any significant way. @bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (9545094): comparison URL. Overall result: ❌✅ regressions and improvements - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @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.
|
I think this is noisy. The pre-merge perf run also had quite some variance, though it looked a bit different. Also, there's no good reason why this change should make much difference. @rustbot label: +perf-regression-triaged |
Since unsized fields may only be the last one in a struct, we only need to generate a double reference (
&&self.field
) for the final one.cc @nnethercote