-
Notifications
You must be signed in to change notification settings - Fork 2.6k
A large chunk of time is spent in phase_4_translate_to_llvm during cargo check #3444
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
This should not be the case (caveat below). Kinda the whole point of I'll look into this... |
I was profiling cargo check on https://github.com/servo/webrender/tree/master/wrench |
I think this may be a duplicate of #3418? |
This should be fixed now. |
Should the fix be in rustc 1.16.0-nightly (47c8d9fdc 2017-01-08)? Because I'm still seeing the bulk of the time in 44% of time in rustc_driver::driver::phase_4_translate_to_llvm |
@jrmuizel |
I was only profiling the final rustc --crate-name wrench main.rs --crate-type bin --emit=dep-info,metadata invocation so this should be unrelated to build scripts. |
Ah ok. In that case though this is likely an upstream rustc bug rather than a Cargo bug, as Cargo's just shelling out to rustc with appropriate arguments. |
Indeed. I've filed rust-lang/rust#38964. |
Uh oh!
There was an error while loading. Please reload this page.
I was profiling 'cargo check' and it looks like about 53% of the time is spent in phase_4_translate_to_llvm. Is it really necessary to translate_to_llvm during check?
@nrc
The text was updated successfully, but these errors were encountered: