-
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
Make core::iter::Fuse
fuse all iterators
#102006
Conversation
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
r? @scottmcm (rust-highfive has picked a reviewer for you, use r? to override) |
That seems really niche... it could happen generically, but then the extra branch will be 100% correlated, easily predicted by the CPU. Do you know real-world instances of this kind of nesting? One of the goals was performance, so let's test that: @bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit ac557c2 with merge c9f0c6a12aea1c026ff8eb866493161a043a88d9... |
☀️ Try build successful - checks-actions |
Queued c9f0c6a12aea1c026ff8eb866493161a043a88d9 with parent 11bb80a, future comparison URL. |
Finished benchmarking commit (c9f0c6a12aea1c026ff8eb866493161a043a88d9): comparison URL. Overall result: no relevant changes - 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 benchmark run did not return any relevant results for this metric. 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.
Footnotes |
I have no examples at all, but what I read from the initial RFC that seemed to be the primary complaint and the motivation for adding this stably exposed specialization at all? There is still a mandatory for soundness check at each level of The rustc perf run is as expected, I doubt that rustc uses |
Right, that was issue #85863 and pull request #86765, and I also tried removing the specialization in #86766. The latter did show some performance hit at the time, but it wasn't pervasive.
I only see one actual call to |
Closing per the libs-api feedback in #100518 (comment) I like their example that |
This keeps the specialization for
Fuse<Fuse<...>>
specifically, to avoid one of the branches.Per comments in the stabilization PR, this is not considered a breaking change.