]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #67889 - Zoxc:parallel-cgus, r=michaelwoerister
authorMazdak Farrokhzad <twingoow@gmail.com>
Sat, 11 Jan 2020 11:36:06 +0000 (12:36 +0100)
committerGitHub <noreply@github.com>
Sat, 11 Jan 2020 11:36:06 +0000 (12:36 +0100)
commit7b741fb68e506cc432c1859d8c4fa4a3936f0f41
treed48367a1970306aed53c22639a13baa40e5582c4
parentcd47af1881f2844dd1b81f9e37f64dd52d969eac
parent69bacd002b432292f5b0fdf76b4fad1432473f36
Rollup merge of #67889 - Zoxc:parallel-cgus, r=michaelwoerister

Compile some CGUs in parallel at the start of codegen

This brings the compilation time for `syntex_syntax` from 11.542s to 10.453s with 6 threads in non-incremental debug mode. Just compiling `n` CGUs in parallel at the beginning of codegen seems sufficient to get rid of the staircase effect, at least for `syntex_syntax`.

Based on https://github.com/rust-lang/rust/pull/67777.

r? @michaelwoerister
cc @alexcrichton @Mark-Simulacrum
src/librustc_codegen_ssa/base.rs