Auto merge of #5100 - alexcrichton:better-dep-ordering, r=matklad
authorbors <bors@rust-lang.org>
Thu, 1 Mar 2018 21:49:10 +0000 (21:49 +0000)
committerbors <bors@rust-lang.org>
Thu, 1 Mar 2018 21:49:10 +0000 (21:49 +0000)
commit558c7d2bec2546d31449f72dd3a547e88d681888
tree50bea07d37f2e8b080eaf2e46f034af08a8bdae2
parent382967ad10e9315513bed959bda9d9d866328e83
parente54b5f875d0f2127a5daf8402557d058c9a3e652
Auto merge of #5100 - alexcrichton:better-dep-ordering, r=matklad

Improve Cargo's scheduling of builds

Historically Cargo has been pretty naive about scheduling builds, basically just
greedily scheduling as much work as possible. As pointed out in #5014, however,
this isn't guaranteed to always have the best results. If we've got a very deep
dependency tree that would otherwise fill up our CPUs Cargo should ideally
schedule these dependencies first. That way when we reach higher up in the
dependency tree we should have more work available to fill in the cracks if
there's spare cpus.

Closes #5014