-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rust-docs installation is very slow #87131
Comments
The tarball installer is not @pietroalbini Could you transfer this issue to the rust repo? |
Ahh my apologies @kinnison , still totally new to Rust/don't know all of the components yet and just happened to see the other issue mentioned in this one if it would be easier, I can close this + recreate it in the correct repo too. Not a big deal or anything just figured I'd mention it since it was a bit surprising as a new user to Rust |
That's quite alright @ChristianWilkie - Most new users just use |
Moved the issue. |
Hmm, this should have been fixed in #84289 - what version of rust are you installing? That fix landed in 1.53. |
@jyn514 oh jeez, you're absolutely right. I thought I had the latest but I grabbed 1.50 by mistake. Retried with 1.53 and it's golden. Thank you :) |
@rafrafek you are comparing download speed vs. install speed. rust-docs is a very IO operation heavy component because it contains tens of thousands of small files. If you happen to have a virus scanner which is getting in the way of the unpacker then this can cause the slowdown you are experiencing. |
@kinnison not sure, it says installing, looks like downloading |
@rafrafek we use the same progress-bar code for both codepaths. Believe me, that's installing. |
@kinnison ok, understandable, thanks! |
@rafrafek Your best bet is to see if you have a virus scanner, and if so to tell it to either ignore the rust toolchain directory, or at least to set it to scan-on-first-use rather than scan-on-create. |
Describe the problem you are trying to solve
I'm new to Rust and was trying to install it on a Linux machine (user/non-root) by downloading the .tar.gz and using install.sh.
When it reached the part "install: installing component 'rust-docs'" I thought it hanged but it just took a few minutes.
Describe the solution you'd like
Not a big deal but just a suggestion - it might be good if there was a mention about it taking a while, maybe something like
"install: installing component 'rust-docs' (this may take a while)"
It would be even better if there was some form of progress indicator but probably that would be a lot more difficult
Notes
I also saw it mentioned in rust-lang/rustup#1540 - but this original issue was for Windows, not Linux
The text was updated successfully, but these errors were encountered: