This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c; Use Latin1 \p{} in optimization
authorKarl Williamson <public@khwilliamson.com>
Fri, 6 Jan 2012 21:38:37 +0000 (14:38 -0700)
committerKarl Williamson <public@khwilliamson.com>
Fri, 13 Jan 2012 16:58:39 +0000 (09:58 -0700)
commite4e94b48fb015fb6cfcd4fa6fb94ce0523715a9c
tree16ebccc6cd5314682800ea7d36a56ef5a36b9cbe
parentbf4c00b474859c4f7090aa4d9988621f0cd3946c
regcomp.c; Use Latin1 \p{} in optimization

This commit causes any Latin1-range characters from Unicode properties
to be placed at compile time into the bitmap of the ANYOF node that
implements those properties, and to remove the flag that says they
should be looked for at run time.  This causes the optimizer to generate
a better start class, as it knows more fully which characters can be and
can't be in the start class, and speeds up runtime checking, as it can
just do a bitmap test for these, instead of having to go look at the
swash.
regcomp.c