Uh oh!
There was an error while loading. Please reload this page.
Don't compute inlining status of mono items in advance. - #112128
Conversation
I expect this to have no perf impact, but let's check. @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
bors
commented
May 31, 2023
⌛ Trying commit 9571d670c36e1e17f3b2351c11fa8cc539260e35 with merge cc638c2ed8ff2a74362f50eb1e9467496484182d... |
This comment has been minimized.
This comment has been minimized.
SparrowLii
commented
May 31, 2023
This is very nice if it has little perf impact |
bors
commented
May 31, 2023
☀️ Try build successful - checks-actions |
1 similar comment
bors
commented
May 31, 2023
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
rust-timer
commented
May 31, 2023
Finished benchmarking commit (cc638c2ed8ff2a74362f50eb1e9467496484182d): comparison URL. Overall result: no relevant changes - no action neededBenchmarking 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 Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 643.402s -> 642.265s (-0.18%) |
We record inlining status for mono items in `MonoItems`, and then transfer it to `InliningMap`, for later use in `InliningMap::with_inlining_candidates`. But we can just compute inlining status directly in `InliningMap::with_inlining_candidates`, because the mono item is right there. There's no need to compute it in advance. This commit changes the code to do that, removing the need for `MonoItems` and `InliningMap::inlines`. This does result in more calls to `instantiation_mode` (one per static occurrence) but the performance effect is negligible.
9571d67 to
cc21d9aComparennethercote
commented
May 31, 2023
No perf impact. @wesleywiser, ready for review, thanks! @bors rollup |
wesleywiser
commented
Jun 1, 2023
@bors r+ |
bors
commented
Jun 1, 2023
…=wesleywiser Don't compute inlining status of mono items in advance. We record inlining status for mono items in `MonoItems`, and then transfer it to `InliningMap`, for later use in `InliningMap::with_inlining_candidates`. But we can just compute inlining status directly in `InliningMap::with_inlining_candidates`, because the mono item is right there. There's no need to compute it in advance. This commit changes the code to do that, removing the need for `MonoItems` and `InliningMap::inlines`. This does result in more calls to `instantiation_mode` (one per static occurrence) but the performance effect is negligible. r? `@wesleywiser`
Rollup of 7 pull requests Successful merges: - rust-lang#108459 (rustdoc: Fix LinkReplacer link matching) - rust-lang#111318 (Add a distinct `OperandValue::ZeroSized` variant for ZSTs) - rust-lang#111892 (rustdoc: add interaction delays for tooltip popovers) - rust-lang#111980 (Preserve substs in opaques recorded in typeck results) - rust-lang#112024 (Don't suggest break through nested items) - rust-lang#112128 (Don't compute inlining status of mono items in advance.) - rust-lang#112141 (remove reference to Into in ? operator core/std docs, fixrust-lang#111655) Failed merges: - rust-lang#112071 (Group rfcs tests) r? `@ghost` `@rustbot` modify labels: rollup
We record inlining status for mono items in
MonoItems, and then transfer it toInliningMap, for later use inInliningMap::with_inlining_candidates.But we can just compute inlining status directly in
InliningMap::with_inlining_candidates, because the mono item is right there. There's no need to compute it in advance.This commit changes the code to do that, removing the need for
MonoItemsandInliningMap::inlines. This does result in more calls toinstantiation_mode(one per static occurrence) but the performance effect is negligible.r? @wesleywiser