diff options
author | Karl Williamson <khw@cpan.org> | 2020-06-03 16:05:23 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-10-02 09:37:42 -0600 |
commit | 7af5518645a0304883fa2e9bfb22d9fd00b3847b (patch) | |
tree | 34b90211457157349a732b4f9d9f704926379875 /pod/perldebguts.pod | |
parent | 1a651719bf0d87ba92ed2380a88eb658daa69fd6 (diff) | |
download | perl-7af5518645a0304883fa2e9bfb22d9fd00b3847b.tar.gz |
regcomp.sym: Reorder some entries
These are mostly used in regexec.c in three functions. Two of the
functions use less than half the available ones, as case labels in a
switch() statement. By moving all the ones used by those functions to
be nearly contiguous at the beginning, compilers can generate smaller
jump tables for the switch().
Diffstat (limited to 'pod/perldebguts.pod')
-rw-r--r-- | pod/perldebguts.pod | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/pod/perldebguts.pod b/pod/perldebguts.pod index 3c7b7c0d8a..2260213d0f 100644 --- a/pod/perldebguts.pod +++ b/pod/perldebguts.pod @@ -711,6 +711,24 @@ will be lost. except begins and/or ends with [Ss]; (string not UTF-8; compile-time only) + # New charclass like patterns + LNBREAK none generic newline pattern + + # Trie Related + + # Behave the same as A|LIST|OF|WORDS would. The '..C' variants + # have inline charclass data (ascii only), the 'C' store it in the + # structure. + + TRIE trie 1 Match many EXACT(F[ALU]?)? at once. + flags==type + TRIEC trie Same as TRIE, but with embedded charclass + charclass data + + AHOCORASICK trie 1 Aho Corasick stclass. flags==type + AHOCORASICKC trie Same as AHOCORASICK, but with embedded + charclass charclass data + # Do nothing types NOTHING no Match empty string. @@ -797,21 +815,6 @@ will be lost. # This is not used yet RENUM off 1 1 Group with independently numbered parens. - # Trie Related - - # Behave the same as A|LIST|OF|WORDS would. The '..C' variants - # have inline charclass data (ascii only), the 'C' store it in the - # structure. - - TRIE trie 1 Match many EXACT(F[ALU]?)? at once. - flags==type - TRIEC trie Same as TRIE, but with embedded charclass - charclass data - - AHOCORASICK trie 1 Aho Corasick stclass. flags==type - AHOCORASICKC trie Same as AHOCORASICK, but with embedded - charclass charclass data - # Regex Subroutines GOSUB num/ofs 2L recurse to paren arg1 at (signed) ofs arg2 @@ -842,9 +845,6 @@ will be lost. # Control what to keep in $&. KEEPS no $& begins here. - # New charclass like patterns - LNBREAK none generic newline pattern - # SPECIAL REGOPS # This is not really a node, but an optimized away piece of a "long" |