-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Add #[inline]
to Vec
's Deref/DerefMut
#97553
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
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
(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 0a7a0ff with merge b20edec6d352b36b8e7bad706d8d60a33ba471a1... |
☀️ Try build successful - checks-actions |
Queued b20edec6d352b36b8e7bad706d8d60a33ba471a1 with parent 946a88a, future comparison URL. |
Finished benchmarking commit (b20edec6d352b36b8e7bad706d8d60a33ba471a1): 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 |
The |
You can check few other perf runs and see, that changes in |
Well, they're 10x larger, but you're right, without knowing the variance it might still be noise. |
I've personally seen this many times in local profiling, so I think it's worth doing this. Hopefully opaque pointers indeed fix this case though in the future. @bors r+ rollup=never |
📌 Commit 0a7a0ff has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (395a09c): 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. Next Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression Footnotes |
As with any chance to inlining, performance is expected to change and to not always have a positive impact. That being said, the improvements outweigh the regressions (especially in primary benchmarks), and so it doesn't seem worth it to dig too much more into this. @rustbot label: +perf-regression-triaged |
This should help #97552 (although I haven't verified).