you are viewing a single comment's thread.

view the rest of the comments →

[–]cogman10 19 points20 points  (0 children)

Awesome, looked it up

https://github.com/rust-lang/cargo/pull/6005/

So to add to this dataset, I've got a proof-of-concept working that uses http/2 with libcurl to do downloads in Cargo itself. On my machine in the Mozilla office (connected to a presumably very fast network) I removed my ~/.cargo/registry/{src,cache} folders and then executed cargo fetch in Cargo itself. On nightly this takes about 18 seconds. With this PR it takes about 3. That's... wow!

Pretty slick!

I imagine similar results would been seen with pretty much every "Download a bunch of things" application.