Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information