Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upShould download and install concurrently #731
Comments
Diggsey
added this to Downloads
in Issue Categorisation
May 4, 2017
Diggsey
added
enhancement
performance
labels
May 5, 2017
This comment has been minimized.
This comment has been minimized.
|
I don't know if it would be profitable to do multiple network requests in parallel, or multiple file ops in parallel, but it would definitely be profitable to be doing networking while doing file I/O. Today rustup does installation in two phases: first it acquires all the resources off the network; then it installs them. It does this to eliminate the uncertainty of the network failing during installation. The actual file I/O though in rustup does have a transactional system that is supposed to be able to roll back, and it definitely does in the test suite, and I've seen it do rollbacks live. I am not super-confident that it is bulletproof, though we could try interleaving downloading and installation and see how it goes. Adding parallelism here would make status messages nondeterministic and more confusing. There are definitely opportunities for improvement here, though I'm not sure I'm ready to pull the trigger yet without thinking about the constraints more. If somebody wanted to give it a shot I'd be happy to review. |
brson
added
the
help wanted
label
May 12, 2017
This comment has been minimized.
This comment has been minimized.
For reference, on my 100Mbps connection, downloading the tarball for As for output status/messages, maybe something like indicatif could work? |
nagisa commentedSep 23, 2016
Currently rustup is scarily sequential. It could easily download more stuff while installing the previously downloaded stuff.