Takuto Ikuta
a060ee26f0
checkout.c: enable fscache for checkout again
...
This is retry of #1419 .
I added flush_fscache macro to flush cached stats after disk writing
with tests for regression reported in #1438 and #1442 .
git checkout checks each file path in sorted order, so cache flushing does not
make performance worse unless we have large number of modified files in
a directory containing many files.
Using chromium repository, I tested `git checkout .` performance when I
delete 10 files in different directories.
With this patch:
TotalSeconds: 4.307272
TotalSeconds: 4.4863595
TotalSeconds: 4.2975562
Avg: 4.36372923333333
Without this patch:
TotalSeconds: 20.9705431
TotalSeconds: 22.4867685
TotalSeconds: 18.8968292
Avg: 20.7847136
I confirmed this patch passed all tests in t/ with core_fscache=1.
Signed-off-by: Takuto Ikuta <tikuta@chromium.org >
2019-07-30 10:55:11 +02:00
..
2019-07-30 10:55:10 +02:00
2019-07-09 15:25:44 -07:00
2019-01-02 13:05:30 -08:00
2019-05-28 10:51:01 -07:00
2019-07-19 11:30:20 -07:00
2019-07-09 15:25:34 -07:00
2019-01-24 12:35:44 -08:00
2019-06-27 12:45:17 -07:00
2019-01-24 11:55:06 -08:00
2019-01-24 11:55:06 -08:00
2019-02-06 22:05:23 -08:00
2019-07-30 10:55:11 +02:00
2019-07-30 10:55:05 +02:00
2019-07-30 09:25:16 +02:00
2019-05-13 14:22:53 +09:00
2019-06-19 20:46:26 -07:00
2019-03-08 10:31:24 +09:00
2019-07-30 10:55:10 +02:00
2019-01-29 12:47:54 -08:00
2019-06-20 10:44:22 -07:00
2019-01-24 11:55:06 -08:00
2019-01-24 11:55:06 -08:00
2019-03-07 09:59:54 +09:00
2019-04-25 16:41:12 +09:00
2019-05-19 16:45:35 +09:00
2019-07-11 14:31:04 -07:00
2019-06-20 10:18:09 -07:00
2019-03-20 18:34:09 +09:00
2019-07-09 15:25:46 -07:00
2019-03-21 12:03:35 +09:00
2019-06-20 10:18:09 -07:00
2019-07-19 11:30:20 -07:00
2019-04-01 11:57:39 +09:00
2019-06-27 12:45:17 -07:00
2019-05-13 14:22:53 +09:00
2019-02-20 12:31:56 -08:00
2019-05-15 11:01:40 +09:00
2019-06-13 13:18:46 -07:00
2019-06-19 07:12:49 -07:00
2019-07-15 11:44:25 -07:00
2019-06-13 11:28:53 -07:00
2019-03-21 12:03:35 +09:00
2019-01-14 15:29:28 -08:00
2019-01-24 11:55:06 -08:00
2019-01-24 11:55:06 -08:00
2019-02-06 22:05:23 -08:00
2019-06-27 12:45:17 -07:00
2019-07-19 11:30:23 -07:00
2019-05-13 14:22:54 +09:00
2019-06-11 10:34:40 -07:00
2019-01-24 11:55:06 -08:00
2019-06-20 10:18:09 -07:00
2019-01-15 15:38:29 -08:00
2019-07-19 11:30:21 -07:00
2019-04-01 11:57:38 +09:00
2019-04-26 10:54:03 +09:00
2019-05-08 19:27:43 +09:00
2019-03-07 09:59:55 +09:00
2019-06-20 10:18:09 -07:00
2019-06-21 09:38:29 -07:00
2019-07-30 09:33:12 +02:00
2019-05-13 14:22:53 +09:00
2019-05-13 14:22:53 +09:00
2019-07-29 12:39:14 -07:00
2019-07-19 11:30:21 -07:00
2019-02-06 22:05:27 -08:00
2019-05-13 14:22:54 +09:00
2019-07-19 11:30:22 -07:00
2019-05-09 00:37:24 +09:00
2019-01-15 15:38:29 -08:00
2019-07-30 09:25:16 +02:00
2019-06-20 13:13:04 -07:00
2019-01-24 11:55:06 -08:00
2019-07-19 11:30:21 -07:00
2019-07-25 13:59:24 -07:00
2019-01-02 13:05:30 -08:00
2018-12-15 12:24:33 +09:00
2019-05-13 14:22:54 +09:00
2019-05-19 16:45:30 +09:00
2019-07-30 10:54:53 +02:00
2018-12-26 15:41:47 -08:00
2019-07-09 15:25:46 -07:00
2019-06-05 14:39:28 -07:00
2019-06-20 10:18:09 -07:00
2019-06-27 12:45:17 -07:00
2019-05-13 14:22:53 +09:00
2019-05-13 14:22:54 +09:00
2019-06-13 13:19:40 -07:00
2019-05-13 14:22:53 +09:00