Re: [PATCH v7 02/12] preload-index: add override to enable testing preload-index

2017-09-20 Thread Stefan Beller
> To execute the preload code path, we need a minimum of 2 cache entries and 2 > threads so that each thread actually has work to do. Otherwise the logic > below that divides the work up would need to be updated as well. The > additional complexity didn't seem worth it just to enable the code

Re: [PATCH v7 02/12] preload-index: add override to enable testing preload-index

2017-09-20 Thread Ben Peart
On 9/20/2017 6:06 PM, Stefan Beller wrote: On Tue, Sep 19, 2017 at 12:27 PM, Ben Peart wrote: Preload index doesn't run unless it has a minimum number of 1000 files. To enable running tests with fewer files, add an environment variable (GIT_FORCE_PRELOAD_TEST) which

Re: [PATCH v7 02/12] preload-index: add override to enable testing preload-index

2017-09-20 Thread Stefan Beller
On Tue, Sep 19, 2017 at 12:27 PM, Ben Peart wrote: > Preload index doesn't run unless it has a minimum number of 1000 files. > To enable running tests with fewer files, add an environment variable > (GIT_FORCE_PRELOAD_TEST) which will override that minimum and set it to 2.

[PATCH v7 02/12] preload-index: add override to enable testing preload-index

2017-09-19 Thread Ben Peart
Preload index doesn't run unless it has a minimum number of 1000 files. To enable running tests with fewer files, add an environment variable (GIT_FORCE_PRELOAD_TEST) which will override that minimum and set it to 2. Signed-off-by: Ben Peart --- preload-index.c | 2 ++ 1