-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Slow merge with large repos #9642
Comments
@twpedersen what about your system spec? |
@bagasme merge takes > 1 minute on a ryzen 3900x. Interestingly it seems to take about the same amount of time on an i3-9100. The |
I suspect the problem is not the merge but at the push in the end - in particular there are a few calls in there to count objects that are quite slow. Others have found this before. If you can, you could put logging in to test where the problems are. One other thing that can improve things is ensuring that the git commit graph is built. |
We should probably run commit counting in queue to make it async, that should considerably improve performance |
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
[x]
):Description
note: This issue is not seen in 1.11.0+dev-575-g1e9b3d474
To reproduce:
On 1.8.3+2-g11f6ed4f8 the merge takes a few seconds. It seems this issue was originally reported in #601 and #6287 then fixed in #4921 and resurfaced somewhere between 1.8.2 and 1.9.6.
top shows
/usr/libexec/git-core/git rev-list --objects --stdin --not --all --quiet
using 100% CPU during merge. Generating the commit-graph doesn't help.The text was updated successfully, but these errors were encountered: