diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2016-10-18 14:46:41 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2016-10-18 14:46:41 +1100 |
| commit | cde42cd7803308793a9902022413a5e34557f9a9 (patch) | |
| tree | 34c7f2e77a417aa83eb1987e1ff27816e151cb40 /src/test/incremental/thinlto | |
| parent | d34318dd538bf4c9175e4138b3e4188ea8211620 (diff) | |
| download | rust-cde42cd7803308793a9902022413a5e34557f9a9.tar.gz rust-cde42cd7803308793a9902022413a5e34557f9a9.zip | |
Don't enqueue onto a disabled dep_graph.
This commit guards all calls to `DepGraphThreadData::enqueue` with a check to make sure it is enabled. This requires distinguishing between a "fully enabled" and an "enqueue-enabled" graph. This change avoids some useless allocation and vector manipulations when the graph is disabled (i.e. when incremental compilation is off) which improves speed by ~1% on some of the rustc-benchmarks.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
