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:40 -04:00
2022-10-30 14:04:51 -04:00
2022-04-06 09:42:14 -07:00
2022-08-19 11:13:14 -07:00
2022-10-30 14:04:51 -04:00
2022-10-13 09:32:57 -07:00
2022-10-30 21:04:43 -04:00
2022-10-13 09:32:56 -07:00
2022-10-30 21:04:44 -04:00
2022-10-13 09:32:55 -07:00
2022-07-01 11:43:42 -07:00
2022-01-13 13:49:45 -08:00
2022-09-01 10:49:48 -07:00
2022-10-13 09:32:57 -07:00
2022-10-30 14:04:51 -04:00
2022-10-28 11:26:54 -07:00
2022-10-13 09:32:57 -07:00
2022-10-28 11:26:54 -07:00
2022-09-01 10:49:48 -07:00
2022-02-04 13:58:28 -08:00
2022-10-13 09:32:57 -07:00
2022-10-28 11:26:54 -07:00
2022-10-28 11:26:54 -07:00
2022-10-13 09:32:54 -07:00
2022-10-13 09:32:56 -07:00
2022-10-13 09:32:57 -07:00
2022-10-28 11:26:54 -07:00
2022-10-30 14:04:51 -04:00
2022-08-19 11:13:14 -07:00
2022-09-14 12:56:39 -07:00
2022-09-01 10:49:48 -07:00
2022-09-12 08:38:59 -07:00
2022-11-08 17:15:12 -05:00
2021-12-20 14:55:02 -08:00
2022-10-13 09:32:56 -07:00
2022-10-28 11:26:54 -07:00
2022-10-17 14:56:31 -07:00
2022-11-08 17:15:12 -05:00
2022-09-23 09:41:27 -07:00
2022-10-13 09:32:57 -07:00
2022-10-28 11:26:54 -07:00
2022-08-19 11:13:15 -07:00
2022-06-17 10:38:26 -07:00
2022-10-13 09:32:57 -07:00
2022-10-13 09:32:57 -07:00
2022-10-30 21:04:42 -04:00
2022-09-12 09:25:40 -07:00
2022-10-13 09:32:56 -07:00
2022-09-01 10:49:48 -07:00
2022-05-20 15:26:59 -07:00
2022-10-13 09:32:56 -07:00
2022-07-01 11:43:43 -07:00
2022-10-30 14:04:51 -04:00
2022-03-07 11:57:52 -08:00
2022-10-22 22:21:26 -07:00
2022-10-30 14:04:40 -04:00
2022-03-16 17:53:08 -07:00
2022-06-21 10:12:15 -07:00
2022-10-06 09:56:51 -07:00
2022-09-19 14:35:23 -07:00
2022-09-01 10:49:48 -07:00
2022-09-07 12:06:12 -07:00
2022-10-28 11:26:54 -07:00
2022-10-13 09:32:56 -07:00
2022-10-13 09:32:56 -07:00
2022-10-24 15:44:20 -07:00
2022-02-04 13:58:28 -08:00
2022-04-13 23:56:08 -07:00
2022-10-30 14:04:40 -04:00
2022-09-28 19:03:10 -07:00
2022-08-26 09:49:26 -07:00
2022-10-13 09:32:56 -07:00
2022-10-30 21:04:43 -04:00
2022-09-01 10:49:48 -07:00
2022-09-19 11:11:11 -07:00
2022-11-08 17:15:12 -05:00
2022-10-30 21:04:42 -04:00
2022-08-05 14:13:12 -07:00
2022-10-13 09:32:56 -07:00
2022-11-10 21:49:34 -05:00
2022-10-13 09:32:56 -07:00
2022-09-14 12:56:39 -07:00
2022-10-13 09:32:56 -07:00
2022-10-13 09:32:57 -07:00
2022-10-13 09:32:56 -07:00
2022-10-24 14:48:05 -07:00
2022-10-28 11:26:54 -07:00
2022-10-28 11:26:54 -07:00
2022-10-13 09:32:55 -07:00
2022-10-28 11:26:54 -07:00
2022-02-04 13:58:28 -08:00
2022-10-27 14:51:53 -07:00
2022-10-28 11:26:54 -07:00
2022-10-13 09:32:56 -07:00
2022-10-13 09:32:56 -07:00
2022-06-13 10:22:36 -07:00
2022-10-17 21:24:03 -07:00
2022-10-13 09:32:56 -07:00
2022-10-13 09:32:56 -07:00
2022-10-13 09:32:56 -07:00
2021-11-03 13:25:36 -07:00
2022-10-13 09:32:56 -07:00
2022-10-13 09:32:56 -07:00
2022-10-13 09:32:56 -07:00
2022-10-13 09:32:58 -07:00