-
Notifications
You must be signed in to change notification settings - Fork 13k
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: Get rid of Item::Attributes
#84304
Comments
Steps to implement this:
|
So the new |
There should be no Hmm, keeping |
@rustbot claim |
I will give it a try. I'm not familiar with the codebase but keeping a lightened I will message you on Zulip if I have any questions. |
rustdoc: Remove most fields from ExternalCrate Once rust-lang#84304 is fixed, I can get rid of ExternCrate altogether in favor of CrateNum, but in the meantime, this shrinks ExternalCrate quite a lot. This might hurt compile-times; if it does, I can add `primitive` and `keyword` queries. I expect this to improve compilemem. Helps with rust-lang#76382. r? GuillaumeGomez
84304 - rustdoc: shrink Item::Attributes Helps with rust-lang#84304
This is a special case of #76382.
Attributes
is 72 bytes large and used in quite a few places:Item::attrs
FnDecl::attrs
ExternalCrate::attrs
This has two downsides:
render
needs to look at the attrs of a specificclean
type (Add stability tags to ImportItem. #83900 (comment)).It would be better to calculate this on-demand, so it uses less memory and doesn't have to be calculated for each and every item.
The text was updated successfully, but these errors were encountered: