This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regex matching: Don't do unnecessary work
authorKarl Williamson <khw@cpan.org>
Wed, 16 Dec 2015 19:06:46 +0000 (12:06 -0700)
committerKarl Williamson <khw@cpan.org>
Fri, 18 Dec 2015 05:13:58 +0000 (22:13 -0700)
commit8c9b4e639b8164433ff657146b42306a354ce3cf
treedc8275adf6680a1bb9fc0adcd091be5a636bbb18
parentb3b1cf1722eaa296a49e261c8e670d45491983b5
regex matching: Don't do unnecessary work

This commit sets a flag at pattern compilation time to indicate if
a rare case is present that requires special handling, so that that
handling can be avoided unless necessary.
regcomp.c
regcomp.h
regexec.c