Hmm... The upstream bug was closed and archived more than 3 years ago! I'm Cc'ing Paul, who closed the bug upstream.
BTW, the slowness (with a regexp consisting of just letters) also seems to occur with grep 3.11 under Termux/Android. On 2025-02-26 16:53:26 +0100, Vincent Lefevre wrote: > That's old, but grep is still much slower with -P than without it. > For instance, on some large binary file: > 7.15s with -P > 0.12s without -P > > That's even much worse than before: the ratio was 13, it is now 59! -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)