diff options
author | Jeff King <peff@peff.net> | 2013-07-10 07:38:24 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-11 10:37:16 -0700 |
commit | 98e2092b5027fde9dbe68cb49a196ad2184c02c3 (patch) | |
tree | eac218bc047ba18cc65d4fee392f0f1d2c3d2fe3 /Documentation/technical/trivial-merge.txt | |
parent | t1006: modernize output comparisons (diff) | |
download | tgif-98e2092b5027fde9dbe68cb49a196ad2184c02c3.tar.xz |
cat-file: teach --batch to stream blob objects
The regular "git cat-file -p" and "git cat-file blob" code
paths already learned to stream large blobs. Let's do the
same here.
Note that this means we look up the type and size before
making a decision of whether to load the object into memory
or stream (just like the "-p" code path does). That can lead
to extra work, but it should be dwarfed by the cost of
actually accessing the object itself. In my measurements,
there was a 1-2% slowdown when using "--batch" on a large
number of objects.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/technical/trivial-merge.txt')
0 files changed, 0 insertions, 0 deletions