about summary refs log tree commit diff
path: root/src/liballoc_jemalloc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-10-19 22:05:13 -0700
committerGitHub <noreply@github.com>2016-10-19 22:05:13 -0700
commiteb38d426c41aa8487e8cb8a9dafbfcf3528201f9 (patch)
treee5251319dd8ead508ecfaa188122ac862afc2465 /src/liballoc_jemalloc
parentdfd98ebd3e862d6fe23519fc6605d03a1c146914 (diff)
parentcde42cd7803308793a9902022413a5e34557f9a9 (diff)
downloadrust-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