Uh oh!
There was an error while loading. Please reload this page.
Calculate span info on-demand - #80339
Conversation
This comment has been minimized.
This comment has been minimized.
rust-highfive
commented
Dec 23, 2020
(rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
jyn514
commented
Dec 23, 2020
The failure is strange - it looks like the file |
jyn514
commented
Dec 23, 2020
that did not help :( |
This comment has been minimized.
This comment has been minimized.
5d3d456 to
30d2b24Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Box Item::Attributes This reduces the size of Item from 128 to 40 bytes. I think this is as small as it needs to get 🎉 Builds on rust-lang#80339 and should not be merged before. r? `@GuillaumeGomez`
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
jyn514
commented
Apr 24, 2021
Up to -1.2% in instruction counts on many of the -doc benchmarks. Max-rss looks like noise. @bors r=GuillaumeGomez |
bors
commented
Apr 24, 2021
📌 Commit 63a08e6d29463892a0dbdb828aa193454e7c79d8 has been approved by |
GuillaumeGomez
commented
Apr 24, 2021
Less than what I was hoping for but still great! |
This comment has been minimized.
This comment has been minimized.
The only bit failing was the module, so change that before removing the `span` field.
- Remove `span` field, adding `Item::span()` instead - Special-case `Impl` and `Module` items - Use dummy spans for primitive items
jyn514
commented
Apr 24, 2021
@bors r=GuillaumeGomez |
bors
commented
Apr 24, 2021
📌 Commit ba36142 has been approved by |
bors
commented
Apr 25, 2021
bors
commented
Apr 25, 2021
☀️ Test successful - checks-actions |
attr_spanfor common reused functionSpans onItemdirectly; calculate them on demand insteadyou use inner or outer attributes
source()know that it should use a dummy span instead of the span ofthe crate.
This shrinks
Itemfrom 48 to 40 bytes.Helps with #76382.