This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regexec.c: Less work in /i matching
authorKarl Williamson <public@khwilliamson.com>
Sun, 16 Oct 2011 18:47:21 +0000 (12:47 -0600)
committerKarl Williamson <public@khwilliamson.com>
Tue, 18 Oct 2011 03:52:17 +0000 (21:52 -0600)
commit77a6d8568e288ad300ad7f0805946559b4ec28d1
tree7b6281d683ce12dfd390312b6de067c0643d4144
parent227968da0f4293e121ecb5c36b17ddc98da70dc1
regexec.c: Less work in /i matching

If you watch an execution trace of regexec /i, often you will see it
folding the same thing over and over, as it backtracks or searches
ahead.  regcomp.c has now been changed to always fold UTF-8 encoded
EXACTF and EXCACTFU nodes.  This allows these to not be re-folded each
time.

This commit does it just for find_by_class().  Other commits will expand
this technique for other cases.
regexec.c