grep-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Grep-devel] [PATCH 0/4] search backend thread safety


From: Paul Eggert
Subject: Re: [Grep-devel] [PATCH 0/4] search backend thread safety
Date: Sun, 25 Dec 2016 08:49:30 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

Although this patch seems like a good idea for general applications, could you explain why it helps grep in particular? grep compiles the r.e. in the main thread, and presumably will use it in subthreads. After compilation, the compiled r.e. should never change, so it should be OK for grep to keep it in a global variable shared among the subthreads.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]