diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-03-24 00:09:31 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-24 00:09:31 +0300 |
commit | 889860e1ad85340896f404155f2f16621ca6989e (patch) | |
tree | 1e485ce6b2374061933a6d63cea345b12e489537 /t/perf | |
parent | 83510335c6f6c26089aaba8e40ef063ee68fa840 (diff) | |
parent | eb54a3391bb3bdd6806ebffc21281eae8d9c0dca (diff) |
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/perf')
-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 |