-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rustdoc: write directly to buffer in inner_full_print
#94304
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
This change avoids several temporary allocations for every argument.
r? @CraftSpider (rust-highfive has picked a reviewer for you, use r? to override) |
This looks fine, going to do a perf run and see if it has any impact. I think it's... |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 41de685 with merge e22cfc7e9d1b50e293ac3caff191a248bd48c108... |
☀️ Try build successful - checks-actions |
Queued e22cfc7e9d1b50e293ac3caff191a248bd48c108 with parent 4566094, future comparison URL. |
Finished benchmarking commit (e22cfc7e9d1b50e293ac3caff191a248bd48c108): comparison url. Summary: This benchmark run shows 1 relevant improvement 🎉 but 1 relevant regression 😿 to instruction counts.
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 led 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 |
I'm not 100% sure how perf handles doc changes, and whether these are relevant. I'm going to ask the perf team on Zulip. |
The ones labelled In short, very little changed. The variations you do see are almost certainly noise. I think your changes are good -- they do avoid unnecessary allocations, and make the code easier to read -- but I suspect they happen on a code path that isn't hot. |
The regression is spurious. @rustbot label: +perf-regression-triaged |
@bors r+ |
📌 Commit 41de685 has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (f58d51b): comparison url. Summary: This benchmark run did not return any relevant results. 3 results were found to be statistically significant but too small to be relevant. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
This change avoids several temporary allocations for every argument.