Long compile times due to initialization of large struct #52960
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
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.
Uh oh!
There was an error while loading. Please reload this page.
I tried fixing AltF02/x11-rs#90 with this patch that directly instantiates some (very) large structs via a macro. Unfortunately this change caused compile times to drastically increase. Before a build took only a few seconds, but now a debug build takes 40+ seconds and my attempt to do a release build has been going for
30 minutesover an hour.~/git/x11-rs/x11-dl$ cargo rustc -- -Z time-passes
~/git/x11-rs/x11-dl$ cargo rustc --release -- -Z time-passes (incomplete log output, killed after producing no further output for an hour.)
Meta
rustc --version --verbose:
The text was updated successfully, but these errors were encountered: