Re: [PATCH v4 2/8] grep: skip pthreads overhead when using one thread
- From
Stefan Beller <sbeller@google.com>
- Date
- Jun 1, 2017, 21:45 UTC
- Message-ID
- <CAGZ79kbcdSykdCku-skCY2FVNO-mpP8nkZ1rC1nXTKzAFQzb1Q@mail.gmail.com>
- In-Reply-To
- <CACBZZX580g_fKMnCf0XGD4sGY6DjgH7t9cBtcXZf6muemKWXLA@mail.gmail.com>
Show 5 quoted lines
> I didn't mean to change this bit, it should remain "if > (!num_threads)". I was in the middle of monkeypatching and didn't > review the diff carefully enough. But it any case, without this change > the rest of this diff is your proposed (but segfaulting) change as I > understand it.
Sorry for the proposing a sloppy alternative. (I missed one occurrence of num_threads used in a conditional). I think the original is still better than littering comments everywhere.