Uh oh!
There was an error while loading. Please reload this page.
Split out the various responsibilities of rustc_metadata::Lazy - #97291
Conversation
rust-highfive
commented
May 22, 2022
r? @wesleywiser (rust-highfive has picked a reviewer for you, use r? to override) |
Uh oh!
There was an error while loading. Please reload this page.
791765c to
30323ccComparecjgillot
commented
May 23, 2022
@bors try @rust-timer queue |
rust-timer
commented
May 23, 2022
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
bors
commented
May 23, 2022
⌛ Trying commit 30323cc40d0af9bd158a823d2a8818b26f8d269f with merge 48a331d69e217e5bec16e805669ffe759820ba8d... |
bors
commented
May 23, 2022
☀️ Try build successful - checks-actions |
rust-timer
commented
May 23, 2022
Queued 48a331d69e217e5bec16e805669ffe759820ba8d with parent 32c8c5d, future comparison URL. |
rust-timer
commented
May 23, 2022
Finished benchmarking commit (48a331d69e217e5bec16e805669ffe759820ba8d): comparison url. Instruction count
Max RSS (memory usage)Results
CyclesResults
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never Footnotes |
jackh726
commented
May 24, 2022
Slight regression, but I think it's mild enough. Combined with the clarity wins and unblocking of future work, I think we just land. |
compiler-errors
commented
May 24, 2022
I'm gonna try to slap some |
30323cc to
2b5e592Comparecompiler-errors
commented
May 24, 2022
@bors try @rust-timer queue |
rust-timer
commented
May 24, 2022
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
bors
commented
May 24, 2022
⌛ Trying commit 2b5e592 with merge a9dc794e2e93c93fb228ae43a6ca17eb4192ff7d... |
bors
commented
May 24, 2022
☀️ Try build successful - checks-actions |
rust-timer
commented
May 24, 2022
Queued a9dc794e2e93c93fb228ae43a6ca17eb4192ff7d with parent ee160f2, future comparison URL. |
rust-timer
commented
May 24, 2022
Finished benchmarking commit (a9dc794e2e93c93fb228ae43a6ca17eb4192ff7d): comparison url. Instruction count
Max RSS (memory usage)Results
CyclesResults
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Footnotes |
Okay, well fixing the incorrect size_hint implementation and adding some inlines did the trick I guess. |
cjgillot
commented
May 24, 2022
@bors r+ |
bors
commented
May 24, 2022
📌 Commit 2b5e592 has been approved by |
bors
commented
May 24, 2022
bors
commented
May 24, 2022
☀️ Test successful - checks-actions |
rust-log-analyzer
commented
May 24, 2022
The job Click to see the possible cause of the failure (guessed by this bot) |
rust-timer
commented
May 24, 2022
Finished benchmarking commit (ee9726c): comparison url. Instruction count
Max RSS (memory usage)Results
CyclesResults
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression Footnotes |
Lazy<T>actually acts like three different types -- a pointer in the crate metadata to a single value, a pointer to a list/array of values, and an indexable pointer of a list of values (a table).We currently overload
Lazy<T>to work differently thanLazy<[T]>and the same forLazy<Table<I, T>>. All is well with some helper adapter traits such asLazyQueryDecodableandEncodeContentsForLazy.Well, changes in #97287 that make
Lazywork with the now invariant lifetime'tcxmake these adapters fall apart because of coherence reasons. So we split out these three types and rework some of the helper traits so it's both 1. more clear to understand, and 2. compatible with the changes later in that PR.Split out from #97287 so it can be reviewed separately, since this PR stands on its own.