[pcre-dev] AllAny* is slow with JIT

Página superior
Eliminar este mensaje
Autor: ND
Fecha:  
A: Pcre-dev
Asunto: [pcre-dev] AllAny* is slow with JIT
Good day!

Let's execute
pcre2test -tm 1000 input.txt output.txt


input.txt contains two copies of same pattern/subject. But second compiled
with JIT:

/a.*/s
a\[0123456789]{200000}

/a.*/s,jit
a\[0123456789]{200000}



Here is output.txt (capture is excluded):

PCRE2 version 10.33 2019-04-16
/a.*/s
a\[0123456789]{200000}
Match time 0.0010 milliseconds

/a.*/s,jit
a\[0123456789]{200000}
Match time 1.2800 milliseconds


We can see that JIT-version is about 1000 times slower. Moreover, non-JIT
version time don't depend from subject length. But JIT-version is. That's
why larger subject cause slower match.

As I told with user of PCRE 8.XX there is no such JIT-regression with that
PCRE version.


Thanks.