Skip to content

Conversation

@scottmcm
Copy link
Member

@scottmcm scottmcm commented Mar 1, 2025

slice::Iter::next was always inlined in LLVM; the piece that's new is that it inlines in MIR.

I propose this slight tweak to avoid anyone thinking "wait, it didn't inline before?!?" when reading this, because slice iterators not inlining would have meant horrible runtime performance.

cc @rylev

@bdillo bdillo merged commit e285f27 into rust-lang:master Mar 5, 2025
1 check passed
@bdillo
Copy link
Contributor

bdillo commented Mar 5, 2025

Obviously this one has already been sent out, but thank you for the correction!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants