You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
I have a Rust project with around 250 total dependencies. It's pretty cool, you can see it here: https://github.com/LPGhatguy/rojo
When I run cargo build with no code changes after a complete build, Cargo takes around 2600ms. When I redirect stderr to /dev/null or pass the -q flag, that time drops to around 490ms.
Time with output showing in console:
$ time cargo build
Finished dev [unoptimized + debuginfo] target(s) in 2.46s
real 0m2.559s
user 0m0.000s
sys 0m0.015s
$ time cargo build
Finished dev [unoptimized + debuginfo] target(s) in 2.51s
real 0m2.603s
user 0m0.015s
sys 0m0.000s
Time redirecting stderr to /dev/null:
$ time cargo build 2>/dev/null
real 0m0.493s
user 0m0.000s
sys 0m0.015s
$ time cargo build 2>/dev/null
real 0m0.490s
user 0m0.000s
sys 0m0.030s
Steps
Be on Windows
Compile a Rust project via cargo build via cmd.exe
Weep
Possible Solution(s)
cargo build -p and cargo build 2>/dev/null both suppress the progress bar output and fix the problem, but I like the progress bar because it's pretty and helpful.
Windows' terminal emulator, ConHost, has very very slow writes. I have lots of crates!
Notes
Windows 10, build 1809, using Git Bash or cmd.exe, which both use ConHost.
Output of cargo version:
$ cargo version
cargo 1.32.0 (8610973aa 2019-01-02)
The text was updated successfully, but these errors were encountered:
Thanks for the report. I think this may be fixed (or at least better) on the latest nightly. Can you try with nightly and see how it goes? I think it needs to be a a nightly after 2019-02-06.
Problem
I have a Rust project with around 250 total dependencies. It's pretty cool, you can see it here: https://github.com/LPGhatguy/rojo
When I run
cargo build
with no code changes after a complete build, Cargo takes around 2600ms. When I redirect stderr to/dev/null
or pass the-q
flag, that time drops to around 490ms.Time with output showing in console:
Time redirecting stderr to
/dev/null
:Steps
cargo build
viacmd.exe
Possible Solution(s)
cargo build -p
andcargo build 2>/dev/null
both suppress the progress bar output and fix the problem, but I like the progress bar because it's pretty and helpful.Windows' terminal emulator, ConHost, has very very slow writes. I have lots of crates!
Notes
Windows 10, build 1809, using Git Bash or cmd.exe, which both use ConHost.
Output of
cargo version
:The text was updated successfully, but these errors were encountered: