Re: [PATCH v2 2/7] grep: skip pthreads overhead when using one thread

2017-05-23 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > Skip the administrative overhead of using pthreads when only using one > thread. Instead take the non-threaded path which would be taken under > NO_PTHREADS. > > The threading support was initially added in commit > 5b594f457a ("Threaded

[PATCH v2 2/7] grep: skip pthreads overhead when using one thread

2017-05-23 Thread Ævar Arnfjörð Bjarmason
Skip the administrative overhead of using pthreads when only using one thread. Instead take the non-threaded path which would be taken under NO_PTHREADS. The threading support was initially added in commit 5b594f457a ("Threaded grep", 2010-01-25) with a hardcoded compile-time number of 8 threads.

[PATCH v2 2/7] grep: skip pthreads overhead when using one thread

2017-05-13 Thread Ævar Arnfjörð Bjarmason
Skip the administrative overhead of using pthreads when only using one thread. Instead take the non-threaded path which would be taken under NO_PTHREADS. The threading support was initially added in commit 5b594f457a ("Threaded grep", 2010-01-25) with a hardcoded compile-time number of 8 threads.