-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Use some more const_eval_select
in pointer methods for compile times
#106275
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
Use some more const_eval_select
in pointer methods for compile times
#106275
Conversation
r? @m-ou-se (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 1c7fdaeea0a9966cfa87d2def47636959d90678d with merge 4fc6b4d7c103a94c6e79894303160403b3beeca1... |
Let's hope that this doesn't confuse Bors too much but try has been running for over 25 min I don't know what it's doing @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 3052798c191124eabd397316446b2df987a3d102 with merge fe347f2dc5aadae593fc3fdcac2347b9988ae96f... |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (fe347f2dc5aadae593fc3fdcac2347b9988ae96f): 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.
|
Oh. Yeah. That's a regression I think. Turns out inlining kind of matters. @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 7dbee8317669d87aa145af7a17ff643bb3370c0d with merge 5e83a08343e2144d3281bbb0bd2a70927b4f6aa3... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (5e83a08343e2144d3281bbb0bd2a70927b4f6aa3): 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.
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.
|
Looking very good, just like #105435 but even greener. The |
7dbee83
to
a8f5045
Compare
const_eval_select
in pointer methods for compile timesconst_eval_select
in pointer methods for compile times
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
r? thomcc |
Thanks! @bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (dd01a16): 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.
|
As was pointed out here, the improvements outweigh the regressions so no need to investigate further. @rustbot label +perf-regression-triaged |
…compile-time, r=thomcc Use some more `const_eval_select` in pointer methods for compile times Builds on top of rust-lang#105435 `is_aligned_to` is _huge_ with calling `align_offset`, so this should cut it down a lot. This shows up in rust-lang#65031 (comment)
Builds on top of #105435
is_aligned_to
is huge with callingalign_offset
, so this should cut it down a lot.This shows up in #65031 (comment)