-
Notifications
You must be signed in to change notification settings - Fork 13.3k
liballoc: mark str.to_owned() and String::from(&str) as #[inline]. #54613
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
r? @bluss (rust_highfive has picked a reviewer for you, use r? to override) |
I didn't notice any benchmarks regressing and it size increase of binaries seem to be below 1% in average but perhaps this should get a perf run anyway, just to be extra sure. |
@bors try |
liballoc: mark str.to_owned() and String::from(&str) as #[inline]. Fixes #53681
☀️ Test successful - status-travis |
@rust-timer build 02d7f80 |
Insufficient permissions to issue commands to rust-timer. |
@rust-timer build 02d7f80 |
Success: Queued 02d7f80 with parent e999ebd, comparison URL. |
Hmm, still no perf results? 🤔 |
It looks like something went wrong during collection; @bors try |
@rust-timer build 02d7f80 |
Success: Queued 02d7f80 with parent e999ebd, comparison URL. |
Lets see if we can repeat rust-timer builds with results of previous try builds :) |
Seems like not. @bors retry |
⌛ Trying commit d24070b with merge 9aac7ca572e8ba96e99249a1a9d026331374f228... |
☀️ Test successful - status-travis |
@rust-timer build 9aac7ca572e8ba96e99249a1a9d026331374f228 |
Success: Queued 9aac7ca572e8ba96e99249a1a9d026331374f228 with parent 6310be4, comparison URL. |
Overall a very slight increase in number of executed instructions, but that says very little. |
@bors r+ I’ll r+ this for the following reasons: while the slight increase in number of executed instructions exists, I believe it is a incorrect statistic to look at here. Inlining can easily go one way or the other on that, while also enabling other optimisations (like eliding allocations) that are important for naive code to be more efficient. The specific case in the code( |
📌 Commit d24070b has been approved by |
liballoc: mark str.to_owned() and String::from(&str) as #[inline]. Fixes #53681
☀️ Test successful - status-appveyor, status-travis |
Fixes #53681