-
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
BTree: consistently avoid unwrap_unchecked in iterators #86520
Conversation
Are there benchmarks to see the performance difference? |
The alloc benchmarks don't tell much about the same and other changes, there's too much movement in unrelated(?) tests. But here they are.
Earlier I would believe this suggests there's still some #74693 going on. Now I think rust-timer would say this doesn't make any difference in a less artificial setting, and this particular micro-optimisation in iteration doesn't pay off. Which is good, because it's not there in the iteration everybody uses, the drop handler. |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 6a5b645 with merge 9a830feb82606a9988cfc2f9009e6c9a7c6f1a62... |
☀️ Try build successful - checks-actions |
Queued 9a830feb82606a9988cfc2f9009e6c9a7c6f1a62 with parent 17ea490, future comparison URL. |
Finished benchmarking try commit (9a830feb82606a9988cfc2f9009e6c9a7c6f1a62): comparison url. Summary: This benchmark run did not return any significant 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. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
Error: Label perf-regression can only be set by Rust team members Please let |
@bors r+ |
📌 Commit 6a5b645 has been approved by |
⌛ Testing commit 6a5b645 with merge ccc65c30f60173359dccd1bccf48631f2b815d6b... |
💔 Test failed - checks-actions |
@bors retry spurious network |
⌛ Testing commit 6a5b645 with merge 0c934bce95ef1b3cbc0eb1ba94ae400576bbcdd1... |
The job Click to see the possible cause of the failure (guessed by this bot)
|
💔 Test failed - checks-actions |
@bors retry There also seems to be a bootstrap bug left over from the submodule switch - it went on to build rls before exiting instead of stopping immediately. |
☀️ Test successful - checks-actions |
Some iterator support functions named
_unchecked
internally useunwrap
, some useunwrap_unchecked
. This PR tries settling onunwrap
. #86195 went up the same road but travelled way further and doesn't seem successful.r? @Mark-Simulacrum