Re: [PATCH] RFC: git lazy clone proof-of-concept
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 14, 2008, 21:04 UTC
- Message-ID
- <alpine.LSU.1.00.0802142054080.30505@racer.site>
- In-Reply-To
- <m3y79nb8xk.fsf@localhost.localdomain>
Hi,
On Thu, 14 Feb 2008, Jakub Narebski wrote:
> Do you perchance know why OOo needs so large pack?
No.
> Perhaps you could try running contrib/stats/packinfo.pl on this pack to > examine it to get to know what takes most space.
$ ~/git/contrib/stats/packinfo.pl < \ objects/pack/pack-e4dc6da0a10888ec4345490575efc587b7523b45.pack 2>&1 | \ tee packinfo.txt Illegal division by zero at /home/imaging/git/contrib/stats/packinfo.pl line 141, <STDIN> line 6330855.
> What is the size of checkout, by the way?
I work on a bare repository, but:
$ git archive origin/master | wc -c 2010060800
Or more precisely:
$ echo $(($(git ls-tree -l -r origin/master | sed -n 's/^[^ ]* [^ ]* [^ ]* *\([0-9]*\).*$/\1/p' | tr '\012' +)0)) 1947839459
So yes, we still have the crown of the _whole_ repository being _smaller_ than a single checkout.
Yeah!
> Hmmm... I wonder if packv4 would help...
I could imagine that it does, what with it being so much better with strings. But it would come at a price of performance, I guess, as the string table should be well over 64k.
Ciao, Dscho