rurban / re-engine-PCRE2

use pcre-jit instead of slow perl regex

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

/nojit: /dfa: engine-specific options

rurban opened this issue · comments

support engine-specific options in cperl, like /nojit: /dfa:
and handle it there.

new rx options:

  • //no_jit:
  • //dfa:

PCRE has some specific pcre2syntax (*NO_JIT) option, which is not supported upstream though.
(*LIMIT_MATCH=d), (*LIMIT_DEPTH=d), ...
See http://www.pcre.org/current/doc/html/pcre2syntax.html#SEC16

supporting dfa would be a help for issues where perlre regexes can take infinitely long (URI::Find::Schemeless for example). An example simple config mechanism to enable options is the one re::engine::RE2 uses