Skip to content

issues getting pcre to use jit #577

@alubbe

Description

@alubbe

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions