Re: [PATCH 0/5] Using index-pack in place of verify-pack
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Feb 28, 2011, 17:25 UTC
- Message-ID
- <20110228172455.GA17278@spearce.org>
- In-Reply-To
- <20110228165827.GB24915@sigill.intra.peff.net>
Jeff King <peff@peff.net> wrote:
Show 13 quoted lines
> $ cd linux-2.6 > > $ time git verify-pack \ > .git/objects/pack/pack-36c50f6082df404c26a699f2702946e0cce6208f.idx > real 2m37.338s > user 2m35.874s > sys 0m1.348s > > $ time git index-pack --verify \ > .git/objects/pack/pack-36c50f6082df404c26a699f2702946e0cce6208f.pack > real 1m37.208s > user 1m36.106s > sys 0m1.048s
Not the improvement I had hoped. Your verify-pack ran much more quickly than the fsck I was seeing that led me to suggest this to Junio a few weeks ago. But saving a minute is still pretty good.
That index-pack run is basically what we get during clone, so I don't really expect to improve on that. (However I have been contemplating that the locality within the pack isn't optimal and we can do better placement.)
-- Shawn.