Re: git-index-pack really does suck..
- From
Nicolas Pitre <nico@cam.org>
- Date
- Apr 3, 2007, 21:28 UTC
- Message-ID
- <alpine.LFD.0.98.0704031722590.28181@xanadu.home>
- In-Reply-To
- <Pine.LNX.4.64.0704031357470.6730@woody.linux-foundation.org>
On Tue, 3 Apr 2007, Linus Torvalds wrote:
Show 10 quoted lines
> 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.
Like I said this is bogus since the index-pack is throttled by the network making this overhead a non issue in real life.
And like I said there should _not_ be such a memory usage difference which is probably showing potential problems *elsewhere*.
> 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.
And I bet your newton-raphson lookup idea would shine and bring that overhead down considerably in that case.
Nicolas