-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
rustdoc: Box some fields of GenericParamDefKind
to reduce size
#89998
Conversation
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 25b80baf97e7d1275ce6ecd97c1a763763af42fa with merge 5374adb76f795a93b9b3b2111a0b6fe3347f003b... |
☀️ Try build successful - checks-actions |
Queued 5374adb76f795a93b9b3b2111a0b6fe3347f003b with parent 5e02151, future comparison URL. |
Finished benchmarking commit (5374adb76f795a93b9b3b2111a0b6fe3347f003b): comparison url. Summary: This benchmark run did not return any relevant changes. 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. @bors rollup=never |
Minor improvements on instruction count, medium improvements on max rss :) I haven't read the diff but this seems fine to land otherwise. |
This reduces the size of `GenericParamDef` a bit, but some of the size savings are hidden because of the `ty` field of the `Const` variant. I will box that in the next commit.
This cuts the size of `GenericParamDef` in half, from 104 bytes to 56 bytes. I think the extra indirection should be worth the size savings.
@bors r+ rollup=never |
📌 Commit 9098689 has been approved by |
⌛ Testing commit 9098689 with merge 29fa27b373bdee0193ac266bf0f1d21e4fec8f68... |
💥 Test timed out |
@bors retry |
☀️ Test successful - checks-actions |
Finished benchmarking commit (4626184): comparison url. Summary: This benchmark run did not return any relevant changes. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
This change shrinks
GenericParamDef
from 120 to 56 bytes.GenericParamDef
isused a lot, so the extra indirection should hopefully be worth the size savings.
r? @ghost