diff options
| author | bors <bors@rust-lang.org> | 2016-10-19 22:05:13 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-19 22:05:13 -0700 |
| commit | eb38d426c41aa8487e8cb8a9dafbfcf3528201f9 (patch) | |
| tree | e5251319dd8ead508ecfaa188122ac862afc2465 /src/liballoc_jemalloc | |
| parent | dfd98ebd3e862d6fe23519fc6605d03a1c146914 (diff) | |
| parent | cde42cd7803308793a9902022413a5e34557f9a9 (diff) | |
| download | rust-eb38d426c41aa8487e8cb8a9dafbfcf3528201f9.tar.gz rust-eb38d426c41aa8487e8cb8a9dafbfcf3528201f9.zip | |
Auto merge of #36973 - nnethercote:dep_graph, r=nikomatsakis
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 avoids some useless allocation and vector manipulations when it is disabled (i.e. when incremental compilation is off) which improves speed by 1--2% on most of the rustc-benchmarks. This commit has an observable functional change: when the dep_graph is disabled its `shadow_graph` will no longer receive messages. This should be ok because these message are only used when debug assertions are enabled. r? @nikomatsakis
Diffstat (limited to 'src/liballoc_jemalloc')
0 files changed, 0 insertions, 0 deletions
