Re: [PATCH 0/7] cat-file --batch-check performance improvements

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH 0/7] cat-file --batch-check performance improvements

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:58:08

Jeff King [off-list ref] 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.
... (though I think the result actually cleans up the
sha1_object_info_extended interface a bit, and is worth it).
I tend to agree, especially eyeballing the result of 7/7.

Thanks.

Re: [PATCH 0/7] cat-file --batch-check performance improvements

From: Jeff King <hidden>
Date: 2016-06-15 22:58:08

On Fri, Jul 12, 2013 at 10:23:34AM -0700, Junio C Hamano wrote:
Jeff King [off-list ref] writes:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help