forked from rust-lang/cargo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I've noticed recently that `cargo vendor` feels really sluggish and slow, and apparently this is primarily because we delete the registry caches and re-extract all the tarballs. This commit implements one possible optimization without changing this, however, which is that currently we both copy a file and checksum it, but that ends up reading all the contents twice. Those two functions are now folded into one, shaving about 3s locally from Cargo's own vendor times.
- Loading branch information
1 parent
c7939ae
commit 01f1c01
Showing
1 changed file
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters