Files
git/builtin
Takuto Ikuta a74abe9628 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>
2023-04-18 20:43:18 +02:00
..
2023-02-22 14:55:45 -08:00
2023-01-13 14:17:14 -08:00
2023-01-05 15:07:22 +09:00
2023-02-22 14:55:45 -08:00
2022-12-14 15:55:46 +09:00
2023-02-22 14:55:45 -08:00
2022-11-16 14:57:32 -05:00
2023-02-15 17:11:53 -08:00
2023-02-22 14:55:45 -08:00
2023-02-22 14:55:45 -08:00
2022-12-18 11:48:26 +09:00