9

Slightly optimize `cargo vendor` by alexcrichton · Pull Request #8937 · rust-lan...

 3 years ago
source link: https://github.com/rust-lang/cargo/pull/8937
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Member

alexcrichton commented 17 days ago

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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK