Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Pushing Tags Takes Many Minutes #390

Closed
ekyoung opened this issue May 11, 2017 · 3 comments
Closed

Pushing Tags Takes Many Minutes #390

ekyoung opened this issue May 11, 2017 · 3 comments

Comments

@ekyoung
Copy link
Contributor

ekyoung commented May 11, 2017

Pushing tags to a remote takes about 15 minutes in one repository I'm working with. Using git push --tags on the same repo only takes a second or two.

The code I'm using is similar to the below.

rs := config.RefSpec("/refs/tags/v1.0.0:/refs/tags/v1.0.0")
err := rmt.Push(&git.PushOptions{
	RefSpecs: []config.RefSpec{rs},
})

The time seems to be taken in lot of loops through func (dw *deltaSelector) tryToDeltify(base, target *ObjectToPack) error going over blobs.

@smola
Copy link
Collaborator

smola commented May 16, 2017

@ekyoung Thanks for the report. There are some performance problems when generating packfiles. We're looking into th is. For this case, we have to check if we're trying to send more objects than needed to the server, which would be aggravating the problem.

We'll look into this.

@ekyoung
Copy link
Contributor Author

ekyoung commented May 26, 2017

Now takes about 1 minute on the repo I'm working with instead of 15. A big improvement. Thank you.

@smola
Copy link
Collaborator

smola commented May 29, 2017

@ekyoung I'm glad it helped. There still some upcoming improvements that will make this faster.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants