Skip to content

[rustdoc] Box ItemKind to reduce the size of Item#80014

Merged
bors merged 2 commits intorust-lang:masterfrom
jyn514:box-item-kind
Dec 29, 2020
Merged

[rustdoc] Box ItemKind to reduce the size of Item#80014
bors merged 2 commits intorust-lang:masterfrom
jyn514:box-item-kind

Conversation

@jyn514
Copy link
Copy Markdown
Member

@jyn514 jyn514 commented Dec 13, 2020

This brings the size of Item from

[src/librustdoc/lib.rs:103] std::mem::size_of::<Item>() = 536

to

[src/librustdoc/lib.rs:103] std::mem::size_of::<Item>() = 136

This is an alternative to #79967; I don't think it makes sense to make both changes.

Helps with #79103.

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

Labels

I-compilemem Issue: Problems and improvements with respect to memory usage during compilation. 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.

9 participants