-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Inline derived hash
#111963
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
Inline derived hash
#111963
Conversation
Because most of the other derived functions are inlined: `clone`, `default`, `eq`, `partial_cmp`, `cmp`. The exception is `fmt`, but it tends to not be on hot paths as much.
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit ee013d8 with merge 29ad02403082e1450e94f7468938e49f768cd36c... |
☀️ 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 (29ad02403082e1450e94f7468938e49f768cd36c): 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.
Binary sizeResultsThis 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.
Bootstrap: 648.599s -> 646.184s (-0.37%) |
Looks to be a slight perf win, and the added consistency is good. r? @lqd |
This makes sense to me, and could likely be a codegen improvement in runtime benchmarks (some of which it seems we're seeing in rustc's check builds). I'm not sure why inlining impacts ctfe-stress-5 here per se, and cg attributes it to Some of the other regressions (e.g. on diesel) look like the usual obligations/folding processing code inlining shuffle. Otherwise, r=me. |
@bors r=lqd |
☀️ Test successful - checks-actions |
Finished benchmarking commit (f8447b9): 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.
Binary sizeResultsThis 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.
Bootstrap: 646.979s -> 644.623s (-0.36%) |
Lots of small perf changes, but the improvement slightly outweigh the regressions. @rustbot label: +perf-regression-triaged |
Because most of the other derived functions are inlined:
clone
,default
,eq
,partial_cmp
,cmp
. The exception isfmt
, but it tends to not be on hot paths as much.r? @ghost