From: Brandon Williams Date: Thu, 15 Feb 2018 22:02:12 GMT Subject: Re: [PATCH 0/3] a few grep patches Message-ID: <20180215220212.GA123347@google.com> In-Reply-To: <20180215215615.21208-1-rv@rasmusvillemoes.dk> On 02/15, Rasmus Villemoes wrote: > I believe the first two should be ok, but I'm not sure what I myself > think of the third one. Perhaps the saving is not worth the > complexity, but it does annoy my optimization nerve to see all the > unnecessary duplicated work being done. I agree, the first two seem like good changes to me though I don't know if i like the complexity that the third introduces. > > Rasmus Villemoes (3): > grep: move grep_source_init outside critical section > grep: simplify grep_oid and grep_file > grep: avoid one strdup() per file > > builtin/grep.c | 25 ++++++++++++------------- > grep.c | 8 ++++++-- > 2 files changed, 18 insertions(+), 15 deletions(-) > > -- > 2.15.1 > -- Brandon Williams