Closed
Description
I've noticed that the nightly compilers lately have taken quite a long time to compile efm32gg11b82. The crate is a large amount of code generated by svd2rust. I've narrowed down the difference in build time to a nightly release. The results below are from debug builds, but I've seen similar numbers for release builds.
rustc 1.25.0-nightly (bacb5c5 2018-01-26):
$ CARGO_INCREMENTAL=0 cargo build
Compiling aligned v0.1.1
Compiling bare-metal v0.1.1
Compiling cortex-m v0.4.3
Compiling vcell v0.1.0
Compiling untagged-option v0.1.1
Compiling volatile-register v0.2.0
Compiling efm32gg11b820 v0.2.0 (file:///home/alex/efm32gg11b820)
Finished dev [unoptimized + debuginfo] target(s) in 233.85 secs
rustc 1.25.0-nightly (7d6e5b9 2018-01-27):
$ CARGO_INCREMENTAL=0 cargo build
Compiling cortex-m v0.4.3
Compiling aligned v0.1.1
Compiling bare-metal v0.1.1
Compiling vcell v0.1.0
Compiling untagged-option v0.1.1
Compiling volatile-register v0.2.0
Compiling efm32gg11b820 v0.2.0 (file:///home/alex/efm32gg11b820)
Finished dev [unoptimized + debuginfo] target(s) in 2358.13 secs
I'm not really sure how to profile this further, so I'll take any suggestion you have.