This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pp.c: Use built-in case tables for ords < 256
authorKarl Williamson <public@khwilliamson.com>
Mon, 22 Aug 2011 15:26:09 +0000 (09:26 -0600)
committerKarl Williamson <public@khwilliamson.com>
Sat, 27 Aug 2011 14:25:24 +0000 (08:25 -0600)
commite1a8dbf543b3c24ee8aacaf571e19124bec0b7ae
tree70be12101f45982804fdf324e7c35be389978b8e
parent9d2ba0fab0a13d87f06a6836d5bc65337cf31ab8
pp.c: Use built-in case tables for ords < 256

Previously, all case changing on utf8-encoded strings used the tables on
disk, under the off-chance that there was a user-defined case change
override in effect.  Now that that feature has been removed, this can't
happen, so we can use the existing built-in tables.

This code has been present and ifdef'd out since 5.10.1.  New compiler
warnings forced a few other changes besides removing the #if statements

Running some primitive benchmarks showed that this sped up upper-casing of
utf8 strings in the latin1 range by 2 orders of magnitude.
pp.c