Uh oh!
There was an error while loading. Please reload this page.
Cache non-exhaustive separately from attributes - #74887
Conversation
rust-highfive
commented
Jul 28, 2020
r? @lcnr (rust_highfive has picked a reviewer for you, use r? to override) |
Mark-Simulacrum
commented
Jul 28, 2020
r? @petrochenkov perhaps @bors try @rust-timer queue Locally this is a 2-3% performance win on the smaller crates. |
rust-timer
commented
Jul 28, 2020
Awaiting bors try build completion |
bors
commented
Jul 28, 2020
⌛ Trying commit e0fb1d8781bffcf6e4b691f16a781e31b24a1318 with merge 554bc32d7285b816c134bbb13ccde3771cb3987a... |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
petrochenkov
commented
Jul 28, 2020
Implementation LGTM, waiting on perf. |
bors
commented
Jul 28, 2020
☀️ Try build successful - checks-actions, checks-azure |
rust-timer
commented
Jul 28, 2020
Queued 554bc32d7285b816c134bbb13ccde3771cb3987a with parent 7b3a781, future comparison URL. |
e0fb1d8 to
13ad232Comparerust-timer
commented
Jul 28, 2020
Finished benchmarking try commit (554bc32d7285b816c134bbb13ccde3771cb3987a): comparison url. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
Mark-Simulacrum
commented
Jul 29, 2020
Seems like a clear, if small, win. @bors r=petrochenkov rollup=never I suspect it would be good to do this for all other attribute loading, but that can be done in follow-up PRs. I think ideally we want to convert all meaningful attributes into bit flags or so rather than iterating arrays to check for presence. |
bors
commented
Jul 29, 2020
📌 Commit 13ad232 has been approved by |
bors
commented
Jul 29, 2020
bors
commented
Jul 29, 2020
☀️ Test successful - checks-actions, checks-azure |
Mark-Simulacrum
commented
Aug 3, 2020
This was a small perf improvement, as expected. |
This prevents cross-crate attribute loading from metadata just for non_exhaustive checking; cross-crate attribute loading implies disk reading and is relatively slow.