diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-03-23 14:09:31 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-23 14:09:31 -0700 |
commit | 889860e1ad85340896f404155f2f16621ca6989e (patch) | |
tree | 1e485ce6b2374061933a6d63cea345b12e489537 /t | |
parent | Merge branch 'js/in-place-reverse-in-sequencer' (diff) | |
parent | cat-file: skip expanding default format (diff) | |
download | tgif-889860e1ad85340896f404155f2f16621ca6989e.tar.xz |
Merge branch 'jc/cat-file-batch-default-format-optim'
Optimize away strbuf_expand() call with a hardcoded formatting logic
specific for the default format in the --batch and --batch-check
options of "git cat-file".
* jc/cat-file-batch-default-format-optim:
cat-file: skip expanding default format
Diffstat (limited to 't')
-rwxr-xr-x | t/perf/p1006-cat-file.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/t/perf/p1006-cat-file.sh b/t/perf/p1006-cat-file.sh new file mode 100755 index 0000000000..dcd8015379 --- /dev/null +++ b/t/perf/p1006-cat-file.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +test_description='Tests listing object info performance' +. ./perf-lib.sh + +test_perf_large_repo + +test_perf 'cat-file --batch-check' ' + git cat-file --batch-all-objects --batch-check +' + +test_done |