Files
git/builtin
Victoria Dye 0e47bca0f7 reset: use 'skip_cache_tree_update' option
Enable the 'skip_cache_tree_update' option in the variants that call
'prime_cache_tree()' after 'unpack_trees()' (specifically, 'git reset
--mixed' and 'git reset --hard'). This avoids redundantly rebuilding the
cache tree in both 'cache_tree_update()' at the end of 'unpack_trees()' and
in 'prime_cache_tree()', resulting in a small (but consistent) performance
improvement. From the newly-added 'p7102-reset.sh' test:

Test                         before            after
--------------------------------------------------------------------
7102.1: reset --hard (...)   2.11(0.40+1.54)   1.97(0.38+1.47) -6.6%

Signed-off-by: Victoria Dye <vdye@github.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
2022-11-10 21:49:34 -05:00
..
2022-10-30 14:04:51 -04:00
2022-04-06 09:42:14 -07:00
2022-10-30 21:04:44 -04:00
2022-10-30 14:04:51 -04:00
2022-11-08 17:15:12 -05:00
2022-10-30 21:04:42 -04:00
2022-09-19 14:35:23 -07:00
2022-10-30 21:04:43 -04:00
2021-11-03 13:25:36 -07:00