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