Takuto Ikuta
9928f9238f
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 >
2020-10-06 09:41:23 +02:00
..
2020-10-06 09:41:23 +02:00
2020-09-30 12:53:47 -07:00
2020-07-30 19:18:06 -07:00
2020-10-04 12:49:08 -07:00
2020-10-04 12:49:07 -07:00
2020-09-16 12:38:10 -07:00
2020-09-03 12:37:02 -07:00
2020-08-11 18:04:11 -07:00
2020-07-09 14:00:41 -07:00
2020-08-18 17:17:31 -07:00
2020-04-28 10:47:10 -07:00
2020-10-06 09:41:23 +02:00
2020-10-06 01:54:58 +02:00
2020-10-06 01:50:49 +02:00
2020-09-30 12:53:47 -07:00
2020-04-28 10:47:10 -07:00
2020-10-06 08:41:49 +02:00
2020-09-22 12:36:29 -07:00
2020-08-13 11:02:08 -07:00
2020-09-03 12:37:03 -07:00
2020-08-13 11:02:08 -07:00
2020-07-30 19:18:06 -07:00
2020-06-22 10:46:45 -07:00
2020-04-20 18:22:54 -07:00
2020-09-29 11:54:53 -07:00
2020-07-30 19:18:06 -07:00
2020-09-30 12:53:47 -07:00
2020-10-05 14:01:50 -07:00
2020-09-06 13:40:37 -07:00
2020-08-18 16:46:53 -07:00
2020-10-05 14:01:54 -07:00
2020-03-24 15:04:43 -07:00
2020-09-16 12:38:10 -07:00
2020-08-06 13:01:03 -07:00
2020-09-17 11:30:05 -07:00
2020-09-10 10:49:19 -07:00
2020-08-04 18:34:01 -07:00
2020-09-22 12:36:28 -07:00
2020-09-22 09:22:32 -07:00
2020-04-28 10:47:10 -07:00
2020-10-05 14:01:55 -07:00
2020-08-18 17:17:31 -07:00
2020-08-24 14:54:30 -07:00
2020-02-11 09:59:39 -08:00
2019-08-19 10:08:03 -07:00
2019-08-22 12:34:10 -07:00
2020-09-25 15:25:38 -07:00
2020-01-31 10:45:39 -08:00
2019-10-23 12:05:06 +09:00
2020-07-20 14:35:43 -07:00
2020-08-14 09:33:37 -07:00
2020-04-28 10:47:10 -07:00
2020-08-19 16:14:52 -07:00
2019-12-09 12:26:40 -08:00
2020-03-24 15:04:44 -07:00
2020-05-13 12:19:18 -07:00
2020-09-29 14:01:22 -07:00
2020-09-30 12:53:47 -07:00
2020-07-28 15:02:18 -07:00
2020-04-28 10:47:10 -07:00
2020-09-25 15:25:38 -07:00
2020-09-25 15:25:39 -07:00
2020-07-06 22:09:15 -07:00
2020-07-28 15:02:18 -07:00
2020-09-22 12:36:32 -07:00
2020-09-09 13:53:06 -07:00
2020-07-30 19:18:06 -07:00
2020-09-02 14:39:25 -07:00
2020-08-07 15:13:03 -07:00
2020-09-02 14:39:25 -07:00
2019-07-19 11:30:21 -07:00
2020-02-19 10:56:49 -08:00
2020-09-25 15:25:39 -07:00
2020-09-27 12:21:05 -07:00
2020-09-09 13:53:09 -07:00
2020-05-27 10:07:07 -07:00
2020-04-28 10:47:10 -07:00
2020-09-30 12:53:48 -07:00
2020-09-09 13:53:09 -07:00
2020-09-09 13:53:07 -07:00
2020-09-16 12:38:10 -07:00
2020-01-31 10:45:39 -08:00
2020-04-28 10:47:10 -07:00
2020-07-28 15:02:17 -07:00
2020-07-30 19:18:06 -07:00
2019-07-31 14:38:56 -07:00
2020-08-11 18:04:11 -07:00
2019-06-19 08:19:21 -07:00
2020-09-18 17:58:04 -07:00