This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regexec.c: Nano optimization: reverse 'if' order
authorKarl Williamson <public@khwilliamson.com>
Wed, 24 Oct 2012 03:32:46 +0000 (21:32 -0600)
committerKarl Williamson <public@khwilliamson.com>
Wed, 24 Oct 2012 15:37:56 +0000 (09:37 -0600)
commitafd2eb184276b5d20a0c228bfdba00ed209f3e44
tree8a2dcf817ec60bec875b97e6686da0f320f3368b
parent635cd5d4249dc12aee8715be32cb34c2f327a56f
regexec.c: Nano optimization: reverse 'if' order

It's more likely that the code point is invariant than that the target
is UTF-8, so test it first.  This works even if the target isn't UTF-8.
regexec.c