Skip to content

Compiler slowdown on lage module in nightly #48153

Description

@crawford

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.I-compiletimeIssue: Problems and improvements with respect to compile times.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions