-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Miscellaneous inlining improvements #99028
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
Add `#[inline]` to a few trivial non-generic methods from a perf report that otherwise wouldn't be candidates for inlining.
r? @estebank (rust-highfive has picked a reviewer for you, use r? to override) |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 87374de with merge e30db7aa9aa2bcbb1ee9d57b6c26e0fa9c522740... |
☀️ Try build successful - checks-actions |
Queued e30db7aa9aa2bcbb1ee9d57b6c26e0fa9c522740 with parent 3e51277, future comparison URL. |
Finished benchmarking commit (e30db7aa9aa2bcbb1ee9d57b6c26e0fa9c522740): comparison url. Instruction count
Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. 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. @bors rollup=never Footnotes |
Nothing huge, but pretty consistent win. CC @nnethercote @bors r+ |
Nice work. Which profiler did you use to find these? |
☀️ Test successful - checks-actions |
Finished benchmarking commit (86b8dd5): 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. @rustbot label: -perf-regression Footnotes |
perf |
Add
#[inline]
to a few trivial non-generic methods from a perf reportthat otherwise wouldn't be candidates for inlining.