This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use table lookup for qr/\b{wb}/
authorKarl Williamson <khw@cpan.org>
Wed, 20 Jan 2016 23:15:38 +0000 (16:15 -0700)
committerKarl Williamson <khw@cpan.org>
Wed, 3 Feb 2016 17:34:23 +0000 (10:34 -0700)
commit7e54b87f95738233dec6d22ca103db816747c518
treef456d3661b44ca87b463ed023d1ba0383ff78198
parentf39ff1f37d442c1701859527bbfca27427551179
Use table lookup for qr/\b{wb}/

This follows the recent commits for lb and gcb, and generates a table at
regen time for Word Breaking.  The result may run faster, depending on
the compiler optimization capabilities, than before, and is easier to
maintain, as it's easier to smack a new rule into the regen perl script
than it is to change the C code.
charclass_invlists.h
regen/mk_invlists.pl
regexec.c