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 uprustdoc for liblibc is 2.3GB large #37183
Comments
sfackler
added
A-docs
T-rustdoc
and removed
A-docs
labels
Oct 14, 2016
This comment has been minimized.
This comment has been minimized.
|
The same files are present many times over:
If I'm not mistaken, the |
This comment has been minimized.
This comment has been minimized.
|
Oh wow, some files are repeated up to 64 times for just one architecture. For example |
This comment has been minimized.
This comment has been minimized.
|
Maybe #35236 ? |
This comment has been minimized.
This comment has been minimized.
|
It is somewhat surprising that all those files would add up to 2.3GB - each one is only a redirect so should be a hand full of bytes. Could be possible though. That's the only change I've made, I'm not aware of any others than could have done this. |
This comment has been minimized.
This comment has been minimized.
|
I suspect that there is an exponential blowup somewhere, probably due to building for the Cartesian product of all possible systems. Unfortunately, there is no good solution short of dynamically-generated pages. |
This comment has been minimized.
This comment has been minimized.
|
Installed doc size on disk in 1.13 is 248 MB. In 1.12 it was 131 MB. |
brson
added
the
regression-from-stable-to-stable
label
Nov 10, 2016
This comment has been minimized.
This comment has been minimized.
|
I haven't been able to reproduce this and unfortunately the Anyway I've submitted a patch (#37773) which fixes some inlining issues and it brings it down to 151 MiB with 90,041 files which is better and I think correct given the current design of rustdoc (nearly 3/4 of the files are redirects). |
This comment has been minimized.
This comment has been minimized.
|
@ollie27 the 2.3 GB was across a number of platforms (explicit duplication), all listed above in @bluss's comment. I gained the size from If you check out the Conversely, for |
This comment has been minimized.
This comment has been minimized.
|
Here's the not particularly scientific results I get:
I believe the size increase from 1.10 to 1.11 was caused by #34068, which was a bugfix and so was intentional. From 1.12 to 1.13 was caused by #35236, so again intentional. I don't think this issue is tracking a regression unless you consider #35236 to be a regression. It did nearly double the number of files rustdoc generates. The issues with inlining that are fixed by #37773 existed in 1.10 and probably before as well. |
This comment has been minimized.
This comment has been minimized.
|
Awesome, thanks for the update! If #37773 solves the libc use case them I'm fine with that, libc is sort of an extreme version of the docs. |
This comment has been minimized.
This comment has been minimized.
|
The difference in size between the files and the blocks does seem to matter here. That's 1.6 GB of real disk space that's going unused right? And I'd guess they are the direct result of all the little redirect files. @ollie27's results look great though. |
This comment has been minimized.
This comment has been minimized.
|
We think this is fixed but need to verify. |
jonathandturner
assigned
alexcrichton
Nov 17, 2016
This comment has been minimized.
This comment has been minimized.
|
Indeed fixed! |
alexcrichton commentedOct 14, 2016
The libc crate generates documentation on a continuous basis and right now the
gh-pagesbranch weighs in around 2.3 GB (!!!).This apparently is so large that GitHub doesn't render all the documentation. This was a recent-ish regression I believe, although I don't quite know what.
cc @nrc do you know of any architectural changes here?