-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
rustdoc for liblibc is 2.3GB large #37183
Comments
The same files are present many times over:
If I'm not mistaken, the |
Oh wow, some files are repeated up to 64 times for just one architecture. For example |
Maybe #35236 ? |
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. |
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. |
Installed doc size on disk in 1.13 is 248 MB. In 1.12 it was 131 MB. |
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). |
@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 |
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. |
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. |
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. |
We think this is fixed but need to verify. |
Indeed fixed! |
The libc crate generates documentation on a continuous basis and right now the
gh-pages
branch 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?
The text was updated successfully, but these errors were encountered: