Re: grep vs git grep performance?
- From
Han-Wen Nienhuys <hanwen@google.com>
- Date
- Oct 26, 2017, 15:11 UTC
- Message-ID
- <CAFQ2z_P9bpw+Pc2DhJTCB8dxj-5JAKLE=nyvToGuiRA8wV66Wg@mail.gmail.com>
- In-Reply-To
- <1509030170.10651.59.camel@perches.com>
On Thu, Oct 26, 2017 at 5:02 PM, Joe Perches <joe@perches.com> wrote:
> Comparing a cache warm git grep vs command line grep > shows significant differences in cpu & wall clock. > > Any ideas how to improve this?
Is git-grep multithreaded? IIRC, grep -r uses multiple threads. (Do you have a 4-core machine?)
--
Google Germany GmbH, Erika-Mann-Strasse 33, 80636 Munich
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Paul Manicle, Halimah DeLaine Prado