in reply to Re^3: Warning about playing with matches
in thread Warning about playing with matches

Any (list|of|fixed|words), no matter how long or whether sorted or not will be pre-compiled into a trie.

I remember an upper limit for trie optimization, are you saying it was removed?

Re^6: Efficient matching with accompanying data (trie limit 15000 ) ... http://perldoc.perl.org/perlvar.html#${^RE_TRIE_MAXBUF}

  • Comment on Re^4: Warning about playing with matches

Replies are listed 'Best First'.
Re^5: Warning about playing with matches
by dave_the_m (Monsignor) on Oct 13, 2015 at 22:42 UTC
    I remember an upper limit for trie optimization, are you saying it was removed?
    Interesting, I did not know that. It appears that when the initial regex opnode list is constructed, if it has more than 65535 nodes (so the BRANCH nodes have to use LONGJMP nodes to continue) then the trie optimisation doesn't kick in. This is indeed still the case.

    Dave.