diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2021-01-04 03:09:10 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-01-04 15:23:08 -0800 |
commit | da8be8ced672fc00d5dea8a95d04854b2e35d925 (patch) | |
tree | 9100788639e776adb35ea93102362a12cd7b683f /t/t4010-diff-pathspec.sh | |
parent | Git 2.30 (diff) | |
download | tgif-da8be8ced672fc00d5dea8a95d04854b2e35d925.tar.xz |
tree-walk: report recursion counts
The traverse_trees() method recursively walks through trees, but also
prunes the tree-walk based on a callback. Some callers, such as
unpack_trees(), are quite complicated and can have wildly different
performance between two different commands.
Create constants that count these values and then report the results at
the end of a process. These counts are cumulative across multiple "root"
instances of traverse_trees(), but they provide reproducible values for
demonstrating improvements to the pruning algorithm when possible.
This change is modeled after a similar statistics reporting in 42e50e78
(revision.c: add trace2 stats around Bloom filter usage, 2020-04-06).
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4010-diff-pathspec.sh')
0 files changed, 0 insertions, 0 deletions