-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
cargo run
with a huge number of arguments doesn’t work
#3547
Comments
Thanks for the report! If possible, could you get a snapshot/profile of where the time is being spent in Cargo? |
I used callgrind, waited 20 seconds before terminating the program with Ctrl+c, and I got that: https://gist.github.com/ariasuni/26822c6dc6121167a5b226c636779582 |
Thanks! I've reported upstream at docopt/docopt.rs#207 |
with #5152 we are using clap. Move to close? |
ripgrep, which is using Clap, don’t choke with twice as much as arguments on the command line. |
@ariasuni could you verify just in case that Cargo itself works ok with huge number of arguments now? The fact that we”ve switched to clap does not mean we use it 100% correct :) |
I just compiled master branch of cargo and ran it with |
I have a folder with 16’000 files. When I run
cargo run folder/*
, Cargo seems blocked and takes a lot of RAM. However, when I run the exec directly (e.g../target/debug/exec
) it works perfectly well.The text was updated successfully, but these errors were encountered: