Skip to content

Remove remaining uses of box syntax from librustdoc#99577

Merged
bors merged 6 commits intorust-lang:masterfrom
est31:remove_box_librustdoc
Jul 29, 2022
Merged

Remove remaining uses of box syntax from librustdoc#99577
bors merged 6 commits intorust-lang:masterfrom
est31:remove_box_librustdoc

Conversation

@est31
Copy link
Member

@est31 est31 commented Jul 21, 2022

Remove the remaining uses of box syntax from librustdoc. Followup of #99066 where these changes were split out because they were responsible for a small but noticeable regression. This PR avoids the regression by boxing some large variants of ItemKind to reduce the enum's size by half from 224 bytes to 112 bytes (on x86-64). This should also help with reducing memory usage.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants