Skip to content

Revert implementing Iterator::nth[_back] in terms of advance_by[_back] #77659

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

Closed

Conversation

timvermeulen
Copy link
Contributor

@ecstatic-morse
Copy link
Contributor

@bors try
@rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion

@bors
Copy link
Collaborator

bors commented Oct 7, 2020

⌛ Trying commit ee7dfce with merge cb0908be81ddf2f8624d49cf8ed5df8b49cc2e8d...

@camelid camelid added T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 7, 2020
@bors
Copy link
Collaborator

bors commented Oct 7, 2020

☀️ Try build successful - checks-actions, checks-azure
Build commit: cb0908be81ddf2f8624d49cf8ed5df8b49cc2e8d (cb0908be81ddf2f8624d49cf8ed5df8b49cc2e8d)

@rust-timer
Copy link
Collaborator

Queued cb0908be81ddf2f8624d49cf8ed5df8b49cc2e8d with parent a14bf48, future comparison URL.

@timvermeulen timvermeulen marked this pull request as draft October 7, 2020 18:11
@rust-timer
Copy link
Collaborator

Finished benchmarking try commit (cb0908be81ddf2f8624d49cf8ed5df8b49cc2e8d): comparison url.

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 rollup- to bors.

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

@Mark-Simulacrum
Copy link
Member

r? @scottmcm

It looks like this does not fix the regression noted in #76909 (comment). I am unsure if we want to revert that PR entirely or just eat this 15% loss. It would seem unfortunate to do so, but I suspect there may be nothing we can do.

@Dylan-DPC-zz
Copy link

r? @KodrAus

@rust-highfive rust-highfive assigned KodrAus and unassigned scottmcm Mar 2, 2021
@Dylan-DPC-zz
Copy link

r? @m-ou-se

@rust-highfive rust-highfive assigned m-ou-se and unassigned KodrAus Mar 18, 2021
@jyn514
Copy link
Member

jyn514 commented Apr 16, 2021

I think that one will regress massively any time an object-safe method is added to Iterator, since it uses Box so all those methods need to be codegened for the vtable. So I don't think reverting the nth changes will fix that part; we might just have to accept it -- unless we decide we just can't add another object-safe method ever again. (Also, that test is massively unrealistic because it's an empty iterator of ()s, and even changing it to an empty iterator of i32 already makes it take 30+ minutes, let alone making it actually have elements.)

Given that this doesn't fix the perf regression, I don't think there's any point in merging or keeping it open.

@jyn514 jyn514 closed this Apr 16, 2021
@timvermeulen timvermeulen deleted the advance_by_nth_revert branch July 8, 2022 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.