-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Use custom wrap-around type instead of RangeInclusive #88242
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
Conversation
Some changes occured to the CTFE / Miri engine cc @rust-lang/miri |
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @oli-obk (or someone else) soon. Please see the contribution instructions for more information. |
This comment has been minimized.
This comment has been minimized.
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 1b4064f with merge b36ec6286bd82a4ef6fbe3af0c69fc7e9a8b316b... |
☀️ Try build successful - checks-actions |
Queued b36ec6286bd82a4ef6fbe3af0c69fc7e9a8b316b with parent 91f9806, future comparison URL. |
Finished benchmarking try commit (b36ec6286bd82a4ef6fbe3af0c69fc7e9a8b316b): comparison url. Summary: This change led to moderate 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 perf run, please indicate this with @bors rollup=never |
Thanks for your quick review! |
Big 👍 on making this a dedicated type! Even without perf improvements, this is a good change. However, the name |
Originally I thought of |
☀️ Try build successful - checks-actions |
Queued fe0af6963339bbddcd972e30a71a118b6d996a93 with parent f66e825, future comparison URL. |
Finished benchmarking try commit (fe0af6963339bbddcd972e30a71a118b6d996a93): comparison url. Summary: This benchmark run did not return any relevant changes. 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. @bors rollup=never |
Thanks, unfortunately I think the picture is still a bit unclear. It would be nice to have a mean delta for every metric. |
The perf page is just broken for me since two days... It looks like an unsubstituted template page to me. Not sure what's going on |
perf is clean, diff lgtm. Thanks for doing this! @bors r+ |
📌 Commit f17e384 has been approved by |
Thanks to both of you for the excellent newbie support! |
☀️ Test successful - checks-actions |
`WrappingRange` (rust-lang#88242) follow-up (`is_full_for`, `Scalar: Copy`, etc.) Some changes related to feedback during rust-lang#88242 r? `@RalfJung`
Two reasons:
valid_range
inScalar
. The range is not used as an iterator andexhausted
is never used.contains
,count
etc. methods inRangeInclusive
are doing very unhelpful(and dangerous!) things when used as a wrap-around range. - In general this PR wants to limit potentially confusing methods, that have a low probability of working.Doing a local perf run, every metric shows improvement except for instructions.
Max-rss seem to have a very consistent improvement.
Sorry - newbie here, probably doing something wrong.