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