Ben Peart
00ec50e56d
read_index_from(): speed index loading by skipping verification of the entry order
...
There is code in post_read_index_from() to catch out of order
entries when reading an index file. This order verification is ~13%
of the cost of every call to read_index_from().
Update check_ce_order() so that it skips this verification unless
the "verify_ce_order" global variable is set.
Teach fsck to force this verification.
The effect can be seen using t/perf/p0002-read-cache.sh:
Test HEAD HEAD~1
--------------------------------------------------------------------------------------
0002.1: read_cache/discard_cache 1000 times 0.41(0.04+0.04) 0.50(0.00+0.10) +22.0%
Signed-off-by: Ben Peart <benpeart@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2017-11-08 10:39:41 +09:00
..
2017-09-10 17:03:00 +09:00
2017-09-10 17:02:51 +09:00
2014-07-16 11:10:11 -07:00
2016-09-07 12:59:42 -07:00
2016-11-22 13:55:20 -08:00
2017-06-24 14:28:41 -07:00
2017-10-18 14:20:43 +09:00
2017-03-21 11:18:41 -07:00
2017-10-18 14:19:01 +09:00
2017-06-15 12:56:22 -07:00
2017-06-24 14:28:41 -07:00
2017-06-15 12:56:22 -07:00
2016-02-22 14:51:09 -08:00
2017-06-15 12:56:22 -07:00
2017-07-26 12:56:19 -07:00
2017-10-17 15:09:52 +09:00
2017-09-10 17:02:49 +09:00
2017-06-15 12:56:22 -07:00
2017-09-10 16:29:53 +09:00
2017-08-23 14:33:44 -07:00
2017-06-24 14:28:41 -07:00
2017-06-15 12:56:22 -07:00
2017-05-30 14:45:03 +09:00
2017-10-18 14:19:01 +09:00
2017-06-24 14:28:41 -07:00
2017-06-24 14:28:41 -07:00
2017-06-24 15:29:31 -07:00
2017-06-24 14:28:41 -07:00
2017-06-30 12:49:28 -07:00
2017-10-23 14:14:51 +09:00
2017-03-31 08:33:56 -07:00
2017-07-13 16:14:54 -07:00
2017-08-23 14:33:52 -07:00
2017-10-04 11:35:29 +09:00
2017-11-08 10:39:41 +09:00
2017-10-18 14:18:59 +09:00
2017-09-14 15:16:21 +09:00
2017-10-17 15:09:52 +09:00
2017-06-15 12:56:22 -07:00
2017-06-15 12:56:22 -07:00
2017-07-05 13:32:57 -07:00
2017-06-15 12:56:22 -07:00
2016-06-13 10:37:48 -07:00
2017-08-23 14:33:44 -07:00
2017-07-17 14:55:21 -07:00
2017-06-23 18:27:07 -07:00
2017-06-24 14:28:41 -07:00
2017-03-21 11:18:41 -07:00
2017-05-08 12:18:19 +09:00
2017-06-24 14:28:41 -07:00
2017-06-15 12:56:22 -07:00
2017-03-26 22:08:21 -07:00
2016-09-15 13:17:32 -07:00
2017-05-08 15:12:57 +09:00
2017-09-10 17:03:02 +09:00
2015-10-16 15:27:52 -07:00
2017-05-08 12:18:19 +09:00
2017-06-15 12:56:22 -07:00
2017-10-18 14:19:09 +09:00
2017-06-24 14:28:41 -07:00
2017-10-23 14:20:18 +09:00
2017-05-08 12:18:19 +09:00
2017-04-14 03:53:25 -07:00
2017-06-15 12:56:22 -07:00
2017-06-24 11:09:52 -07:00
2017-07-05 13:32:56 -07:00
2017-07-13 16:14:54 -07:00
2017-06-24 14:28:41 -07:00
2017-06-24 14:28:41 -07:00
2017-06-15 12:56:22 -07:00
2017-09-14 15:17:59 +09:00
2017-07-10 13:42:51 -07:00
2017-05-30 14:45:04 +09:00
2017-05-30 14:45:04 +09:00
2017-06-24 14:28:41 -07:00
2017-06-24 14:28:41 -07:00
2017-07-10 13:42:51 -07:00
2017-09-14 15:17:59 +09:00
2017-06-24 14:28:41 -07:00
2017-09-10 17:02:48 +09:00
2017-10-18 14:18:58 +09:00
2017-08-02 15:16:09 -07:00
2017-06-24 14:28:41 -07:00
2017-06-15 12:56:22 -07:00
2017-06-15 12:56:22 -07:00
2017-10-17 15:09:52 +09:00
2017-01-23 18:51:56 -08:00
2017-06-15 12:56:22 -07:00
2017-09-10 17:02:49 +09:00
2017-06-15 12:56:22 -07:00
2017-10-17 15:10:13 +09:00
2017-09-14 15:17:59 +09:00
2017-06-24 14:28:41 -07:00
2017-06-24 14:28:41 -07:00
2017-06-15 12:56:22 -07:00
2017-06-15 12:56:22 -07:00
2017-05-30 14:45:04 +09:00
2017-06-15 12:56:22 -07:00
2017-06-24 14:28:41 -07:00
2017-06-15 12:56:22 -07:00
2017-07-13 12:42:50 -07:00
2017-06-24 14:28:41 -07:00
2017-06-15 12:56:22 -07:00