-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Allow Vec's deref to be inlined #97330
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
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 7d5b65e with merge 4bd1cca271443fd27fd0127d1671cbcfe9ba4757... |
Hm, when I filed #96624 this was being inlined pretty reliably, so I'm surprised. (That said, I'm in favor of this change) |
☀️ Try build successful - checks-actions |
Queued 4bd1cca271443fd27fd0127d1671cbcfe9ba4757 with parent 7f997f5, future comparison URL. |
I had the same feeling, but was surprised it wasn't marked inline already when seeing it (expectedly) didn't inline with debug assertions, so I tried it. It did seem to make a difference on the cranelift-codegen and keccak benchmarks (without debug-assertions) and I wondered if it'd reproduce. We'll see. |
Finished benchmarking commit (4bd1cca271443fd27fd0127d1671cbcfe9ba4757): comparison url. Instruction count
Max RSS (memory usage)Results
CyclesResults
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. 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. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never Footnotes |
This was more of a win locally: Here, looking at check builds only to approximate runtime benchmarks, it looks like more of a regression instead. What do you think @thomcc ? Let's probably close it. |
Yeah, this doesn't seem justified. Was worth a shot, though. |
This was hot in some local benchmarks, so let's see if this slight improvement will be interesting.
r? @ghost