-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
I've been trying to get pcre to use jit, but to no avail. My goal is to reproduce these benchmarks: http://sljit.sourceforge.net/regex_perf.html
But no matter what regex I try (Tom|Sawyer|Huckleberry|Finn
, [a-z]shing
, ...), it doesn't JIt:
2015/10/03 21:55:57 [debug] 58278#0: *1 lua compiling gsub regex "Tom|Sawyer|Huckleberry|Finn" with options "oj" (compile once: 1) (dfa mode: 0) (jit mode: 1)
2015/10/03 21:55:57 [debug] 58278#0: *1 pcre JIT compiling result: 0
...
2015/10/03 22:53:21 [debug] 58278#0: *1 lua compiling gsub regex "[a-z]shing" with options "oj" (compile once: 1) (dfa mode: 0) (jit mode: 1)
2015/10/03 22:53:21 [debug] 58278#0: *1 pcre JIT compiling result: 0
I used the --with-pcre-jit
flag and it seems to be installed:
checking for PCRE library ... found
checking for PCRE JIT support ... found
checking for OpenSSL library ... found
checking for zlib library ... found
creating objs/Makefile
Configuration summary
+ using system PCRE library
Am I doing something wrong? These regular expressions should be JITable as shown by the benchmark, right?
Metadata
Metadata
Assignees
Labels
No labels