This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Skip UTF-8 decoding for invariants
authorKarl Williamson <khw@cpan.org>
Fri, 27 Oct 2017 16:15:29 +0000 (10:15 -0600)
committerKarl Williamson <khw@cpan.org>
Fri, 27 Oct 2017 16:22:11 +0000 (10:22 -0600)
commit70a863550b5f1b4bda7681cfac2a1e59c242b1e2
tree62639220e79e4bb0c23912d513def273785e8d8e
parente1342f665c7dae0281567a274d641094486f2a48
regcomp.c: Skip UTF-8 decoding for invariants

By adding two branches, we can avoid the expensive UTF-8 decode step for
the common case of the input being an ASCII character.
regcomp.c