diff options
author | Karl Williamson <public@khwilliamson.com> | 2014-02-15 14:45:03 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2014-02-19 08:32:59 -0700 |
commit | 0ba8faef1d393a5e5eec58121e95c78331a76dda (patch) | |
tree | 5a99cabc67c0ca8855d474227f2564967ea405c3 /embed.fnc | |
parent | 8a50cd03a18f63853c30d77231f3eed37cdf7efa (diff) | |
download | perl-0ba8faef1d393a5e5eec58121e95c78331a76dda.tar.gz |
Convert more EXACTFish nodes to EXACT when possible
Under /i matching, many characters match only themselves, such a
punctuation. If a node contains only such characters it can be an EXACT
node. The optimizer gets better hints when dealing with EXACT nodes
than ones with folding.
This changes the alloc_maybe_populate() function to look for
possibilities of non-folding input.
Diffstat (limited to 'embed.fnc')
-rw-r--r-- | embed.fnc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2071,7 +2071,7 @@ EsRn |char * |regpatws |NN RExC_state_t *pRExC_state \ |NN char *p|const bool recognize_comment Ei |void |alloc_maybe_populate_EXACT|NN RExC_state_t *pRExC_state \ |NN regnode *node|NN I32 *flagp|STRLEN len \ - |UV code_point + |UV code_point|const bool downgradable Ei |U8 |compute_EXACTish|NN RExC_state_t *pRExC_state Es |char * |nextchar |NN RExC_state_t *pRExC_state Es |bool |reg_skipcomment|NN RExC_state_t *pRExC_state |