diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-09-22 12:36:31 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-09-22 12:36:32 -0700 |
commit | 221b755f3a99f600d08441fc5436d0f2ffe57065 (patch) | |
tree | f0bdb3b7ae7592f3f2d5c128ec3826e5cbe9b5b4 /t/perf | |
parent | Merge branch 'al/ref-filter-merged-and-no-merged' (diff) | |
parent | packfile: actually set approximate_object_count_valid (diff) | |
download | tgif-221b755f3a99f600d08441fc5436d0f2ffe57065.tar.xz |
Merge branch 'jk/dont-count-existing-objects-twice'
There is a logic to estimate how many objects are in the
repository, which is mean to run once per process invocation, but
it ran every time the estimated value was requested.
* jk/dont-count-existing-objects-twice:
packfile: actually set approximate_object_count_valid
Diffstat (limited to 't/perf')
-rwxr-xr-x | t/perf/p5303-many-packs.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/perf/p5303-many-packs.sh b/t/perf/p5303-many-packs.sh index 7ee791669a..f4c2ab0584 100755 --- a/t/perf/p5303-many-packs.sh +++ b/t/perf/p5303-many-packs.sh @@ -73,6 +73,10 @@ do git rev-list --objects --all >/dev/null ' + test_perf "abbrev-commit ($nr_packs)" ' + git rev-list --abbrev-commit HEAD >/dev/null + ' + # This simulates the interesting part of the repack, which is the # actual pack generation, without smudging the on-disk setup # between trials. |