aboutsummaryrefslogtreecommitdiffstats
path: root/t/helper/test-cache-tree.c
diff options
context:
space:
mode:
authorVictoria Dye <vdye@github.com>2022-11-10 19:06:02 +0000
committerTaylor Blau <me@ttaylorr.com>2022-11-10 21:49:34 -0500
commit68fcd48bafa1ef51b1ba40a41cb0fcdbad7acce1 (patch)
treeaf43307d536f90cb9d7738b003d2328424cc6841 /t/helper/test-cache-tree.c
parent94fcf0e85207979e3a7b35ad348cdd6b7ab42058 (diff)
downloadgit-68fcd48bafa1ef51b1ba40a41cb0fcdbad7acce1.tar.gz
unpack-trees: add 'skip_cache_tree_update' option
Add (disabled by default) option to skip the 'cache_tree_update()' at the end of 'unpack_trees()'. In many cases, this cache tree update is redundant because the caller of 'unpack_trees()' immediately follows it with 'prime_cache_tree()', rebuilding the entire cache tree from scratch. While these operations aren't the most expensive part of operations like 'git reset', the duplicate calls still create a minor unnecessary slowdown. Introduce an option for callers to skip the 'cache_tree_update()' in 'unpack_trees()' if it is redundant (that is, if 'prime_cache_tree()' is called afterwards). At the moment, no 'unpack_trees()' callers use the new option; they will be updated in subsequent patches. Signed-off-by: Victoria Dye <vdye@github.com> Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 't/helper/test-cache-tree.c')
0 files changed, 0 insertions, 0 deletions