Takuto Ikuta
fcba80a269
reset.c: enable fscache
...
In git reset --hard, unpack-trees() is called with oneway_merge().
oneway_merge calls lstat for each files in a repository.
It is bottleneck of git reset --hard, especially in large repository.
This patch improves time by using fscache.
In chromium repository, time of git reset --hard is changed like below.
I took 3 times stats in the repository.
master:
TotalSeconds: 21.0337971
TotalSeconds: 20.0046612
TotalSeconds: 20.6501752
Avg: 20.5628778333333
this patch:
TotalSeconds: 4.8552376
TotalSeconds: 4.8722343
TotalSeconds: 4.9268245
Avg: 4.88476546666667
Signed-off-by: Takuto Ikuta <tikuta@chromium.org >
2018-01-17 21:39:11 +01:00
..
2018-01-17 21:38:37 +01:00
2018-01-05 13:28:09 -08:00
2017-10-06 10:07:18 +09:00
2018-01-17 21:39:06 +01:00
2018-01-17 21:39:06 +01:00
2017-11-01 11:51:40 +09:00
2017-12-27 11:16:25 -08:00
2018-01-17 21:39:06 +01:00
2017-10-18 14:19:01 +09:00
2017-06-15 12:56:22 -07:00
2017-06-24 14:28:41 -07:00
2017-06-15 12:56:22 -07:00
2018-01-17 21:39:06 +01:00
2017-10-06 10:07:18 +09:00
2018-01-17 21:39:11 +01:00
2018-01-17 21:38:47 +01:00
2018-01-17 21:39:09 +01:00
2018-01-17 21:39:06 +01:00
2017-09-19 10:47:57 +09:00
2018-01-17 21:39:11 +01:00
2017-11-18 12:31:29 +09:00
2017-08-23 15:12:06 -07:00
2018-01-17 21:39:06 +01:00
2017-12-28 14:08:50 -08:00
2017-08-03 13:11:02 -07:00
2017-10-07 16:27:55 +09:00
2017-12-06 14:49:18 -08:00
2017-11-13 13:20:44 +09:00
2017-10-07 10:20:56 +09:00
2018-01-17 21:38:25 +01:00
2018-01-17 21:39:06 +01:00
2017-12-28 14:08:47 -08:00
2017-12-27 11:16:23 -08:00
2017-10-04 11:35:29 +09:00
2017-11-15 12:14:37 +09:00
2018-01-17 21:38:36 +01:00
2018-01-17 21:39:06 +01:00
2017-12-19 11:33:56 -08:00
2017-08-20 21:52:53 -07:00
2017-09-25 15:24:07 +09:00
2017-12-11 16:10:12 -08:00
2018-01-17 21:38:37 +01:00
2018-01-17 21:39:06 +01:00
2018-01-17 21:39:06 +01:00
2017-11-21 14:07:50 +09:00
2018-01-17 21:39:06 +01:00
2017-06-24 14:28:41 -07:00
2018-01-17 21:39:06 +01:00
2018-01-17 21:39:06 +01:00
2017-11-15 12:14:32 +09:00
2017-06-15 12:56:22 -07:00
2018-01-17 21:39:06 +01:00
2017-11-09 14:31:27 +09:00
2016-09-15 13:17:32 -07:00
2018-01-17 21:39:06 +01:00
2017-12-12 10:51:38 -08:00
2018-01-17 21:39:06 +01:00
2018-01-17 21:39:06 +01:00
2017-12-12 12:35:20 -08:00
2017-10-18 14:19:09 +09:00
2017-12-27 11:16:29 -08:00
2017-12-27 11:16:21 -08:00
2017-08-23 15:12:06 -07:00
2018-01-17 21:39:06 +01:00
2017-06-15 12:56:22 -07:00
2018-01-17 21:39:06 +01:00
2018-01-17 21:39:06 +01:00
2017-12-13 13:28:54 -08:00
2017-10-24 09:57:54 +09:00
2017-08-03 13:11:02 -07:00
2017-12-05 10:20:51 -08:00
2017-12-06 09:23:44 -08:00
2018-01-17 21:39:06 +01:00
2018-01-17 21:39:06 +01:00
2017-05-30 14:45:04 +09:00
2018-01-17 21:39:06 +01:00
2018-01-17 21:38:36 +01:00
2017-10-16 11:05:50 +09:00
2017-09-14 15:17:59 +09:00
2018-01-17 21:39:11 +01:00
2018-01-17 21:38:38 +01:00
2018-01-17 21:39:06 +01:00
2017-08-02 15:16:09 -07:00
2017-12-12 12:35:20 -08:00
2018-01-17 21:39:06 +01:00
2017-09-09 01:57:03 +09:00
2017-12-27 11:16:29 -08:00
2018-01-17 21:39:06 +01:00
2018-01-17 21:39:06 +01:00
2018-01-17 21:39:06 +01:00
2017-11-06 10:31:08 +09:00
2017-11-06 14:24:27 +09:00
2017-09-25 15:24:06 +09:00
2017-10-10 08:57:24 +09:00
2017-11-21 14:07:50 +09:00
2017-11-06 10:31:08 +09:00
2017-06-15 12:56:22 -07:00
2018-01-17 21:39:06 +01:00
2017-06-15 12:56:22 -07:00
2017-06-24 14:28:41 -07:00
2017-06-15 12:56:22 -07:00
2017-08-11 13:26:58 -07:00
2017-12-27 11:16:21 -08:00
2017-06-15 12:56:22 -07:00