-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
incremental = true
causes 4-5x build time regression in generated rustc build times
#52374
Comments
I have reproduced this. I also refined the command to
|
This does not just affect libstd. If I can trust my backscroll here, a "stage1 compiler artifacts" build takes 25m 20s with |
incremental = true
causes 5x build time regression for stage1 libstdincremental = true
causes 5x build time regression in generated rustc build times
incremental = true
causes 5x build time regression in generated rustc build timesincremental = true
causes 4-5x build time regression in generated rustc build times
Yes, that's a known issue, unfortunately. #52309 will hopefully solve this in the medium term. |
With incremental ThinLTO now implemented, I think this is largely "fixed enough" |
I am running
rm build/*/stage* -rf && ./x.py build src/libstd
in two different situations: Withincremental = true
and withincremental = false
. All the other settings inconfig.toml
are commented out. This is using 1731f0a.With
incremental = false
, the build step "Building stage1 std artifacts" takes 46s.With
incremental = true
, the same step takes 4m 46s.These are compiled using the stage0 compiler artifacts -- seems like those become way slower when incremental build is enabled?
(I am currently doing this experiment again just to be sure.)
The text was updated successfully, but these errors were encountered: