Thread (10 messages) 10 messages, 2 authors, 2017-05-12

Re: [PATCH 1/7] grep: don't redundantly compile throwaway patterns under threading

From: Brandon Williams <hidden>
Date: 2017-05-12 18:46:16

On 05/11, Ævar Arnfjörð Bjarmason wrote:
Change the pattern compilation logic under threading so that grep
doesn't compile a pattern it never ends up using on the non-threaded
code path, only to compile it again N times for N threads which will
each use their own copy, ignoring the initially compiled pattern.
Is there a reason each thread needs to compile the patterns as opposed
to them being compiled a single time and being copies N time for N
threads?

-- 
Brandon Williams
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help