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