Dmitry Gutov writes: > On 20/07/2023 00:16, Spencer Baugh wrote: >> In Emacs alone, there are a few things we could do: >> - we could mitigate the find bug by optimizing the regexp before we pass >> it to find; this should basically remove all the overhead but makes the >> find command uglier and harder to edit > > I like these two approaches. Much delayed, but the attached patch implements this optimization approach. In my testing, it provides a substantial speed-up for rgrep.