grep: allow threading even on a single-core machine
commitb6b468b2bfaa8015568efad8e0a78b342e1ac640
authorVictor Leschuk <vleschuk@gmail.com>
Tue, 15 Dec 2015 15:31:39 +0000 (15 18:31 +0300)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Dec 2015 18:43:30 +0000 (15 10:43 -0800)
tree408970296d6d6a0c763d21c73331bf7b9957d6d8
parent37023ba381b6d251d7140a997b39b566dbc63c42
grep: allow threading even on a single-core machine

Earlier we disabled threading when online_cpus() said "1", but on a
filesystem with long latency (or in a cold cache situation), using
multiple threads to drive I/O in parallel would improve performance
even on a single-core machines.

Signed-off-by: Victor Leschuk <vleschuk@accesssoftek.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/grep.c