Shuqi Liang
1a65b41b38
write-tree: integrate with sparse index
...
Update 'git write-tree' to allow using the sparse-index in memory
without expanding to a full one.
The recursive algorithm for update_one() was already updated in 2de37c5
(cache-tree: integrate with sparse directory entries, 2021-03-03) to
handle sparse directory entries in the index. Hence we can just set the
requires-full-index to false for "write-tree".
The `p2000` tests demonstrate a ~96% execution time reduction for 'git
write-tree' using a sparse index:
Test before after
-----------------------------------------------------------------
2000.78: git write-tree (full-v3) 0.34 0.33 -2.9%
2000.79: git write-tree (full-v4) 0.32 0.30 -6.3%
2000.80: git write-tree (sparse-v3) 0.47 0.02 -95.8%
2000.81: git write-tree (sparse-v4) 0.45 0.02 -95.6%
Signed-off-by: Shuqi Liang <cheskaqiqi@gmail.com >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2023-04-04 12:50:54 -07:00
..
2022-12-13 22:16:23 +09:00
2023-02-14 14:15:56 -08:00
2022-04-06 09:42:14 -07:00
2022-08-19 11:13:14 -07:00
2022-11-23 11:22:22 +09:00
2022-10-13 09:32:57 -07:00
2023-02-14 14:15:55 -08:00
2022-10-13 09:32:56 -07:00
2023-02-14 14:15:50 -08:00
2022-11-21 12:06:15 +09:00
2022-11-21 12:06:15 +09:00
2022-11-21 12:06:15 +09:00
2022-07-01 11:43:42 -07:00
2021-10-15 13:09:40 -07:00
2022-11-21 12:06:15 +09:00
2022-11-21 12:06:15 +09:00
2022-11-21 12:06:15 +09:00
2023-02-06 09:43:39 +01:00
2021-08-26 14:36:27 -07:00
2022-10-28 11:26:54 -07:00
2022-10-13 09:32:57 -07:00
2022-11-21 12:06:15 +09: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
2021-09-14 09:30:54 -07:00
2021-10-28 09:57:09 -07:00
2022-11-21 12:06:15 +09:00
2022-10-28 11:26:54 -07:00
2022-11-21 12:06:15 +09:00
2022-11-21 12:06:15 +09:00
2022-11-21 12:06:15 +09:00
2022-11-21 12:06:15 +09:00
2022-11-21 12:06:15 +09:00
2022-08-19 11:13:14 -07:00
2022-12-13 22:16:23 +09: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
2021-10-20 14:33:07 -07:00
2022-11-14 22:39:25 -05:00
2022-11-21 12:06:15 +09:00
2022-10-25 17:11:33 -07:00
2022-11-23 11:22:24 +09:00
2022-11-21 12:06:14 +09: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-11-21 12:06:14 +09:00
2022-09-12 09:25:40 -07:00
2022-10-13 09:32:56 -07:00
2023-02-14 14:15:52 -08: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-11-21 12:06:15 +09:00
2022-11-21 12:06:15 +09:00
2022-03-07 11:57:52 -08:00
2022-12-13 22:16:23 +09:00
2022-12-13 22:16:23 +09: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-11-21 12:06:15 +09:00
2022-09-01 10:49:48 -07:00
2022-11-16 14:57:32 -05: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-11-21 15:58:54 +09:00
2022-11-21 12:06:15 +09:00
2022-11-14 16:55:50 -05:00
2022-08-26 09:49:26 -07:00
2022-11-21 12:06:15 +09:00
2022-11-28 12:13:46 +09:00
2022-11-17 16:22:52 -05:00
2022-09-19 11:11:11 -07:00
2022-11-08 17:15:12 -05:00
2022-11-18 18:43:09 -05:00
2022-08-05 14:13:12 -07:00
2022-12-13 22:16:23 +09:00
2022-12-13 22:16:23 +09:00
2022-11-23 11:22:25 +09:00
2022-11-28 12:13:46 +09:00
2022-11-27 10:29:44 +09:00
2022-11-28 12:13:46 +09: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-11-21 12:06:15 +09:00
2022-02-04 13:58:28 -08:00
2022-12-13 22:16:23 +09: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-11-21 12:06:15 +09:00
2021-09-03 11:35:15 -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
2023-04-04 12:50:54 -07:00