This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Optimize /[0-9]/ into /\d/a
authorKarl Williamson <public@khwilliamson.com>
Wed, 27 Jun 2012 22:24:43 +0000 (16:24 -0600)
committerKarl Williamson <public@khwilliamson.com>
Sat, 30 Jun 2012 04:22:42 +0000 (22:22 -0600)
commit3a64b5154fffec75126d34d25954f0aef30d9f8a
tree6dc830e8e90dbd642c45ccf285bbf1c695bbf758
parent3172e3fd885a9c54105d3b6156f18dc761fe29e5
regcomp.c: Optimize /[0-9]/ into /\d/a

The commonly used [0-9] can be optimized into a smaller, faster node
that means the same thing.
regcomp.c