bug#20768: RFC: Multithreaded grep

2015-06-09 Thread Paul Eggert
Thanks very much for looking into this. I'll take a look at it in more detail once the paperwork goes through. I use grep -r a lot, and would appreciate the speedup.

bug#20768: RFC: Multithreaded grep

2015-06-09 Thread Zev Weiss
On Tue, Jun 09, 2015 at 11:00:34AM +0100, Aaron Crane wrote: Zev Weiss wrote: At a high level: I've added a new flag, -M/--parallel[=N], that enables multithreaded operation. Thanks, this looks really interesting. I'd like to suggest changing the code to use -j/--jobs as the name for the rel

bug#20768: RFC: Multithreaded grep

2015-06-09 Thread Aaron Crane
Zev Weiss wrote: > Hmm -- I picked --parallel largely for consistency with the corresponding > flag for coreutils' sort, which strikes me as a closer relative to grep than > either make or parallel. That's a good point; I wasn't aware of sort's --parallel option. Though I also note that "sort --p

bug#20768: RFC: Multithreaded grep

2015-06-09 Thread Aaron Crane
Zev Weiss wrote: > At a high level: I've added a new flag, -M/--parallel[=N], that > enables multithreaded operation. Thanks, this looks really interesting. I'd like to suggest changing the code to use -j/--jobs as the name for the relevant option; that would match both GNU Make and GNU parallel

bug#20768: RFC: Multithreaded grep

2015-06-09 Thread Zev Weiss
On Tue, Jun 09, 2015 at 12:04:11PM +0100, Aaron Crane wrote: Zev Weiss wrote: Hmm -- I picked --parallel largely for consistency with the corresponding flag for coreutils' sort, which strikes me as a closer relative to grep than either make or parallel. That's a good point; I wasn't aware of