Re: git pull is slow
Hi,
On Thu, Jul 10, 2008 at 04:40:17PM +0200, Stephan Hennig wrote:
Show 10 quoted lines
> I am observing very large data transfers when pulling from the
> repository at <URL:http://repo.or.cz/w/wortliste.git>. This repository
> contains one 13 MB text file that compressed is roughly 3 MB large.
>
> While I'd expect pulling commits that change only a few lines of the
> large text file to result in a download of less than, say 10kB, git pull
> seems to transfer the complete, compressed file. I have observed this
> several times for different commits. On the other hand, pushing my own
> commits to the repository is fast (with git+ssh access method). Any
> ideas what's going on and how to make pulling faster?
do you use HTTP or native Git protocol for pulling? If HTTP, you have
to live with this, sorry - the automatic repacks will create a new pack
every time and you will have to redownload the whole history; I tried to
avoid this problem but in the end I had to bow down to the agressive
repacking strategy because the number of packs was getting out of hand.
It is technically possible to implement some alternative more
HTTP-friendly packing strategy, but this has always stayed only in idea
stage. If you want to implement something, repo.or.cz will become a glad
user. :-)
--
Petr "Pasky" Baudis
The last good thing written in C++ was the Pachelbel Canon. -- J. Olson