Re: [PATCH 0/7] cat-file --batch-check performance improvements
- From
Jeff King <peff@peff.net>
- Date
- Jul 12, 2013, 20:12 UTC
- Message-ID
- <20130712201254.GA5276@sigill.intra.peff.net>
- In-Reply-To
- <7vy59blmjt.fsf@alter.siamese.dyndns.org>
On Fri, Jul 12, 2013 at 10:23:34AM -0700, Junio C Hamano wrote:
Show 12 quoted lines
> Jeff King <peff@peff.net> writes: > > > The results for running (in linux.git): > > > > $ git rev-list --objects --all >objects > > $ git cat-file --batch-check='%(objectsize:disk)' <objects >/dev/null > > I can see how these patches are very logical avenue to grab only > on-disk footprint for large number of objects, but among the type, > payload size and on-disk footprint, I find it highly narrow niche > that a real user or script is interested _only_ in on-disk footprint > without even worrying about the type of object.
Yeah, I agree it is a bit of a niche. However, there are other code paths that might want only the size and not the type (e.g., we already know the object is a blob, but want to know size before deciding how to handle diff). But in general, I doubt the performance impact is a big deal there. It's only measurable when you're doing millions of objects.
-Peff