diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-09-22 19:36:31 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-09-22 19:36:32 (GMT) |
commit | 221b755f3a99f600d08441fc5436d0f2ffe57065 (patch) | |
tree | f0bdb3b7ae7592f3f2d5c128ec3826e5cbe9b5b4 /t | |
parent | 26a3728bedbdf75c670e21d24f6a30e4673f8d19 (diff) | |
parent | 67bb65de5ddf008cb39206354ae4b7af66c05b6c (diff) | |
download | git-221b755f3a99f600d08441fc5436d0f2ffe57065.zip git-221b755f3a99f600d08441fc5436d0f2ffe57065.tar.gz git-221b755f3a99f600d08441fc5436d0f2ffe57065.tar.bz2 |
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')
-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 7ee7916..f4c2ab0 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. |