-
-
Notifications
You must be signed in to change notification settings - Fork 342
Regression of applier build times in Rust 1.57 #746
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
Comments
Curiously, this only seems to happen for the pattern |
Good find. Confirming it happens on mine as well. $ touch src/main.rs
$ time cargo +1.57.0 build
Compiling rs157-compile-regression v0.1.0 (/home/clux/repos/repros/repros)
Finished dev [unoptimized + debuginfo] target(s) in 1m 18s
real 1m18.798s
user 1m12.865s
sys 0m5.807s then clean and after building once: $ touch src/main.rs
$ time cargo +1.56.1 build
Compiling rs157-compile-regression v0.1.0 (/home/clux/repos/repros/repros)
Finished dev [unoptimized + debuginfo] target(s) in 3.12s
real 0m3.158s
user 0m2.700s
sys 0m0.458s Dramatic difference. |
I can reproduce this with just |
This is is presumably no longer an issue with the fix getting into stable. Are you OK with bumping the msrv from this point on? |
Happy to close this and unblock the MSRV, I'm back on stable since 1.59. |
First bump since #746 Signed-off-by: clux <[email protected]>
…916) * Bump k8s-openapi to 0.15 Signed-off-by: clux <[email protected]> * just bump-k8s to v1_24 Signed-off-by: clux <[email protected]> * better msrv automation Signed-off-by: clux <[email protected]> * bump msrv to 1.60 First bump since #746 Signed-off-by: clux <[email protected]>
Current and expected behavior
1.57 behaviour
rustup update 1.57.0
cargo +1.57.0 build
rs157-compile-regression(bin)
touch src/main.rs
cargo +1.57.0 build
1.56 behaviour
rustup update 1.56.1
cargo +1.56.1 build
touch src/main.rs
cargo +1.56.1 build
Possible solution
More of a workaround, but boxing
queue
:brings the incremental rebuild time down to ~4s.
Additional context
No response
Environment
Arch Linux
Rustc 1.57 (bad), 1.56.1 (good)
K8s cluster is irrelevant since this is a build issue
Configuration and features
Affected crates
kube-runtime
Would you like to work on fixing this bug?
yes
The text was updated successfully, but these errors were encountered: