From: Junio C Hamano Date: Fri, 19 Oct 2018 04:34:03 +0000 (+0900) Subject: Merge branch 'bp/read-cache-parallel' X-Git-Tag: v2.20.0-rc0~161 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e27bfaaee37c4c9d7e94f945f82c3e452d2dc071;p=git Merge branch 'bp/read-cache-parallel' A new extension to the index file has been introduced, which allows the file to be read in parallel. * bp/read-cache-parallel: read-cache: load cache entries on worker threads ieot: add Index Entry Offset Table (IEOT) extension read-cache: load cache extensions on a worker thread config: add new index.threads config setting eoie: add End of Index Entry (EOIE) extension read-cache: clean up casting and byte decoding read-cache.c: optimize reading index format v4 --- e27bfaaee37c4c9d7e94f945f82c3e452d2dc071 diff --cc t/README index d8b04c35c0,8f5c0620ea..8847489640 --- a/t/README +++ b/t/README @@@ -327,17 -327,11 +327,22 @@@ GIT_TEST_COMMIT_GRAPH=, when t be written after every 'git commit' command, and overrides the 'core.commitGraph' setting to true. +GIT_TEST_FSMONITOR=$PWD/t7519/fsmonitor-all exercises the fsmonitor +code path for utilizing a file system monitor to speed up detecting +new or changed files. + +GIT_TEST_INDEX_VERSION= exercises the index read/write code path +for the index version specified. Can be set to any valid version +(currently 2, 3, or 4). + +GIT_TEST_PRELOAD_INDEX= exercises the preload-index code path +by overriding the minimum number of cache entries required per thread. + + GIT_TEST_INDEX_THREADS= enables exercising the multi-threaded loading + of the index for the whole test suite by bypassing the default number of + cache entries and thread minimums. Setting this to 1 will make the + index loading single threaded. + Naming Tests ------------ diff --cc t/t1700-split-index.sh index 8f8807d1c1,ef9349bd70..3e618cad12 --- a/t/t1700-split-index.sh +++ b/t/t1700-split-index.sh @@@ -6,7 -6,12 +6,12 @@@ test_description='split index mode test # We need total control of index splitting here sane_unset GIT_TEST_SPLIT_INDEX + + # Testing a hard coded SHA against an index with an extension + # that can vary from run to run is problematic so we disable + # those extensions. -sane_unset GIT_FSMONITOR_TEST +sane_unset GIT_TEST_FSMONITOR + sane_unset GIT_TEST_INDEX_THREADS test_expect_success 'enable split index' ' git config splitIndex.maxPercentChange 100 &&