Skip to content

Commit b64c96b

Browse files
committed
Auto merge of #9793 - nipunn1313:install_parallel2, r=alexcrichton
Determine packages to install prior to installing Old logic (pseudocode) ``` for krate in to_install { pkg = determine_pkg(krate); install_pkg(pkg); } ``` New logic ``` let pkgs = to_install.into_iter(|krate| determine_pkg(krate)); pkgs.into_iter(|pkg| install_pkg(pkg)); ``` This has the short term benefit of dumping most error messages out earlier in the process (eg a typo in the second package name). Longer term, it might help with #9741 - as only the second loop would be parallelized. First loop shouldn't be parallelized because it would lead to redundant registry/git updates.
2 parents 259ea8c + f9c2d04 commit b64c96b

File tree

3 files changed

+542
-457
lines changed

3 files changed

+542
-457
lines changed

0 commit comments

Comments
 (0)