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