Open WaffleLapkin opened 3 months ago
For initial downloads, one big slow down compared to crates.io is that we download the entire history. We have unstable support for shallow clone and would recommend trying that to see how much it improves the problem. See #13285
For updates, there seem to be performance issues in libgit2 (#9167) and we are working on transitioning to gitoxide. Maybe give that a try as well. See #1181.3
Now, you may not want to rely on a nightly toolchain for development. Doing the above will help us narrow down root cause and determine if this is a duplicate. Once that is done, you could see if net.git-fetch-with-cli works around the problem for you.
Problem
When compiling a project that uses a lot of git dependencies it takes a lot of time for
cargo
to download them.Example that I just seen:
Seems like there is a big potential for optimizations here.
Steps
git submodule update --init --recursive
cargo build
Possible Solution(s)
Notes
You may need to delete some caches to be able to repeat this test. I think you need to delete
~/.cargo/git/
.Version