Files
git/builtin
Takuto Ikuta a060ee26f0 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>
2019-07-30 10:55:11 +02:00
..
2019-07-09 15:25:44 -07:00
2019-07-19 11:30:20 -07:00
2019-07-09 15:25:34 -07:00
2019-07-30 10:55:05 +02:00
2019-04-25 16:41:12 +09:00
2019-05-19 16:45:35 +09:00
2019-07-19 11:30:23 -07:00
2019-05-13 14:22:54 +09:00
2019-07-29 12:39:14 -07:00
2019-07-25 13:59:24 -07:00