-
Notifications
You must be signed in to change notification settings - Fork 151
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 upgrade -i: crates.io index growing huge and slow execution time #903
Comments
I wonder if the index isn't being squashed as often as it used to. |
I noticed the growing size behavior when it was over 10G in size. I then manually gc'ed it. So I can say up to at least 10G it did not try to reduce the size by itself. The runtime does not decrease after gc, though. |
Same issue. And I think this issue makes |
I noticed cargo upgrade was consistently getting slower. It didn't make a difference in execution speed and I still see it taking over a minute even when running it twice in a row on the same repo. |
Thanks. The fix works. |
When I run
cargo upgrade -i
it massively grows my crates.io index each time and it take a huge time (and CPU) to complete:If I run
git gc
in the index manually, the size goes back to normal.But if I never do gc, then it continues to grow indefinitely each time
cargo upgrade -i
is run.That happens, even if the upgrade didn't really change anything or it is run immediately following a previous run (crates.io hasn't changed much in-between).
cargo upgrade -i
used to be much faster in the past.I use cargo-edit v0.12.3
The text was updated successfully, but these errors were encountered: