-
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
Compilation time regression in 1.73 when building the fundsp crate #116797
Comments
Commit 8378487 from rust-lang#114611 changed the location of an obligation deduplication step in `opt_normalize_projection_type`. This meant that deduplication stopped happening on one path where it was still necessary, causing a couple of drastic performance regressions. This commit moves the deduplication back to the old location. The good news is that rust-lang#114611 had four commits and 8378487 was of minimal importance, so the perf benefits from that PR remain. Fixes rust-lang#116780, rust-lang#116797.
…piler-errors Fix a performance regression in obligation deduplication. Commit 8378487 from rust-lang#114611 changed the location of an obligation deduplication step in `opt_normalize_projection_type`. This meant that deduplication stopped happening on one path where it was still necessary, causing a couple of drastic performance regressions. This commit moves the deduplication back to the old location. The good news is that rust-lang#114611 had four commits and 8378487 was of minimal importance, so the perf benefits from that PR remain. Fixes rust-lang#116780, rust-lang#116797. r? `@compiler-errors`
WG-prioritization assigning priority (Zulip discussion). @rustbot label -I-prioritize +P-high @irh in the next day a new nightly with a fix should be out. If you have a chance, feel free to test it and confirm if it fixes for you too. thanks for reporting the issue. |
@apiraino I tested it on master, and can confirm it's fixed. @nnethercote Thanks for taking a look at this so quickly! I also get the 9s build time, very nice 🥳 |
Commit 8378487 from rust-lang#114611 changed the location of an obligation deduplication step in `opt_normalize_projection_type`. This meant that deduplication stopped happening on one path where it was still necessary, causing a couple of drastic performance regressions. This commit moves the deduplication back to the old location. The good news is that rust-lang#114611 had four commits and 8378487 was of minimal importance, so the perf benefits from that PR remain. Fixes rust-lang#116780, rust-lang#116797. (cherry picked from commit 91f2fbc)
Commit 8378487 from rust-lang#114611 changed the location of an obligation deduplication step in `opt_normalize_projection_type`. This meant that deduplication stopped happening on one path where it was still necessary, causing a couple of drastic performance regressions. This commit moves the deduplication back to the old location. The good news is that rust-lang#114611 had four commits and 8378487 was of minimal importance, so the perf benefits from that PR remain. Fixes rust-lang#116780, rust-lang#116797. (cherry picked from commit 91f2fbc)
1.73
introduced a regression in compilation time when building the fundsp crate.Previously, I could expect a clean build of the crate to take ~22s. Now, compilation hangs for several minutes, I haven't left it running longer than that.
I bisected to #114611, and 8378487 appears to be the commit that introduces the slowdown. Reverting the commit on the latest master brings
fundsp
build times back to normal.The text was updated successfully, but these errors were encountered: