On 2/26/25 08:06, Vincent Lefevre wrote:
Hmm... The upstream bug was closed and archived more than 3 years ago!
I'm Cc'ing Paul, who closed the bug upstream.
I assume the upstream bug is <https://bugs.gnu.org/18454>.
BTW, the slowness (with a regexp consisting of just letters) also
seems to occur with grep 3.11 under Termux/Android.
Can you supply more details, such as PCRE2 version, locale, hardware,
and a test case for this new problem? I just checked, and
grep-3.11-9.fc41.x86_64 and pcre2-tools-10.44-1.fc41.1.x86_64 run at the
same speed on Fedora 41 x86-64 (AMD Phenom II X4 910e) in the en_US.utf8
locale when given the test case data noted in the upstream bug report:
$ time grep -P zzzyyyxxx 10840.pdf
real 0m0.071s
user 0m0.063s
sys 0m0.007s
$ time pcre2grep -U zzzyyyxxx 10840.pdf
real 0m0.072s
user 0m0.062s
sys 0m0.009s
You can get that test data from
<http://research.nhm.org/pdfs/10840/10840.pdf>.