Very slow 80 minutes release build, due mir_pass_scalar_replacement_of_aggregates (sroa) optimization enabled #121354
Labels
A-mir-opt
Area: MIR optimizations
C-bug
Category: This is a bug.
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.
When compiling recently project with release flag -
cargo build --release
I found that compilation takes more than 80 minutes. Debug build completes in ~8 minutes which is acceptable for me.Cargo timing results:
debug - debug_cargo-timing-20240220T105545Z.html.zip
release - release_cargo-timing-20240220T110513Z.html.zip
Later I run
RUSTFLAGS="-Zself-profile" cargo +nightly rustc --release
and I got this resultsthis is output from
RUSTFLAGS="-Zself-profile" cargo +nightly rustc
During compilation, Slint generates single rust file with 90000 lines - main_window.rs.zip
repo - https://github.com/qarmin/czkawka/tree/7.0.0/krokiet
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: