MIR body serialization may be a bottleneck #80536
Labels
A-incr-comp
Area: Incremental compilation
A-metadata
Area: Crate metadata
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
A-mir-opt
Area: MIR optimizations
A-mir-opt-inlining
Area: MIR inlining
I-compiletime
Issue: Problems and improvements with respect to compile times.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
During MIR inlining, we end up producing larger MIR bodies each, as inlining often causes an increase in MIR for non-trivial functions being inlined. This perf run shows that in the incremental cases, we lose some time to
optimized_mir
as expected but this is often offset by wins incodegen
.However the other place we regress is time spent dealing with the incremental cache. That suggests to me that our MIR is larger due to inlining which causes more time to be spent during serialization/deserialization.
It might be worth exploring if there's any optimizations we can make to the serialized
Body
representation.Originally posted by @wesleywiser in #68828 (comment)
The text was updated successfully, but these errors were encountered: