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 upInstalling rust-docs component on Windows 10 is very slow #1540
Comments
This comment has been minimized.
This comment has been minimized.
|
CC @retep998 |
johnthagen
changed the title
Install rust-docs on Windows 10 is very slow
Installing rust-docs on Windows 10 is very slow
Nov 9, 2018
johnthagen
changed the title
Installing rust-docs on Windows 10 is very slow
Installing rust-docs component on Windows 10 is very slow
Nov 9, 2018
This comment has been minimized.
This comment has been minimized.
|
I did timed sample run:
All of the other components installed in a mater of a couple seconds, but This is on a Windows 10 machine with a quad core i5 @ 4GHz and an SSD. All 4 cores are pegged up at around 60-80% for the duration of the install. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ndrewxie
commented
Nov 10, 2018
|
Yes, Windows Defender does cause significant slowdowns - however, turning off real time protection doesn't help very much - it still takes forever. Maybe I should be doing something more than just disabling real time protection? At this point I'm seriously annoyed - multiple people have opened issues for this, and suggested changes such as making the doc optional, merging the small files in the doc into a few large files to accommodate for slow file systems, etc - nothing has really been done so far except "disable your antivirus". |
This comment has been minimized.
This comment has been minimized.
@ndrewxie Could you please link those issues to this one? I opened this because I thought it hadn't been officially reported yet. Best to link any previous discussions together. |
This comment has been minimized.
This comment has been minimized.
|
At this point I think the only fair thing to do is make |
This comment has been minimized.
This comment has been minimized.
As a polyglot Windows and Mac user, I do feel sometimes that Windows support lags behind Linux and Mac in subtle ways (like this issue, for example), but I'd like to try to keep this issue focused on this particular issue, and the concrete ways the situation can be improved. |
This comment has been minimized.
This comment has been minimized.
Michael-F-Bryan
commented
Nov 13, 2018
|
I'm normally a Linux user, but found myself trying to do some project work on Windows today and my god is everything slow. Are there concrete reasons why creating lots of small files (which I'm not super familiar with how Windows does things like its filesystem and Windows Defender under the hood, but I'd be keen to help out. Besides telling all Windows users to turn off their antivirus are there any other ways to mitigate this poor performance? It sounds like we're not the only community suffering from poor filesystem performance because people have had the same issues with |
This comment has been minimized.
This comment has been minimized.
kryptan
commented
Nov 15, 2018
|
It is also slow if you install Rust in WSL. Filesystem is just very slow on Windows. I would prefer to not install docs if it was possible. |
This comment has been minimized.
This comment has been minimized.
|
Another data point from @chriskrycho:
|
This comment has been minimized.
This comment has been minimized.
|
More discussion on this internals thread. Issue previously reported: #763 Issue to make rust-docs optional: #998 @nrc Appears to be working on profiles to help address this: #998 (comment) |
This comment has been minimized.
This comment has been minimized.
doxxx
commented
Nov 30, 2018
|
The |
This comment has been minimized.
This comment has been minimized.
doxxx
commented
Nov 30, 2018
|
I've been looking at the rustup code to see how it works with files. If I understand correctly, updating a component is performed in a transaction where each original file is moved to a temp folder before the new file is written in its place. I was wondering if it would be viable to simply rename the toolchain folder? That would significantly reduce the number of file operations to perform. However, this would only work for toolchain updates, not component installation/removal. That said, installing a new toolchain (i.e. not updating) is slow as well, so this may be a red herring. |
johnthagen
referenced this issue
Dec 1, 2018
Closed
Add progress bar for "installing component" step #1557
This comment has been minimized.
This comment has been minimized.
|
A related issue reported on the User's Forum and #1464:
|
This comment has been minimized.
This comment has been minimized.
|
Another data point. Building a https://travis-ci.org/johnthagen/min-sized-rust/builds/465623377 |
This comment has been minimized.
This comment has been minimized.
kryptan
commented
Dec 9, 2018
|
What if rustup would install |
This comment has been minimized.
This comment has been minimized.
|
The sources are still 2,307 files. While not as bad as the 15,377 files of the docs, it's still a hefty chunk of time. Really we should just not extract |
This comment has been minimized.
This comment has been minimized.
@retep998 This seems very reasonable, and I agree with @kryptan that most users will never use What would be the workflow envisioned for this? Something like the following? $ rustup install toolchain X
... (installs rust-docs compressed file, but does not extract)
... (some time later)
$ rustup component add rust-docs
... (this extracts the rust-docs compressed file, so works even without an Internet connection) |


johnthagen commentedNov 9, 2018
As reported on the User's Forum, installing the
rust-docscomponent on Windows 10 is currently very slow compared to other components, even on machines with an SSD and multi-core processor.