Re: git-index-pack really does suck..
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Apr 3, 2007, 21:00 UTC
- Message-ID
- <Pine.LNX.4.64.0704031357470.6730@woody.linux-foundation.org>
- In-Reply-To
- <7vzm5pur7g.fsf@assigned-by-dhcp.cox.net>
On Tue, 3 Apr 2007, Junio C Hamano wrote:
> > So maybe we should retitle this thread from "git-index-pack > really does suck.." to "I used git-index-pack in a stupid way"?
See my separate timing numbers, although I bet that Chris can give even better ones..
Chris, try applying my patch, and then inside the KDE repo you have, do
git index-pack --paranoid --stdin --fix-thin new.pack < ~/git/.git/objects/pack/pack-*.pack
(ie index the objects of the *git* repository, not the KDE one). That should approximate doing a fair-sized "git pull" - getting new objects. Do it with and without --paranoid, and time it.
I bet that what I see as a 7% slowdown will be much bigger for you, just because the negative lookups will be all that much more expensive when you have tons of objects.
Linus