develooper Front page | perl.perl5.porters | Postings from August 2011

Faster Latin-1 case changing pushed to blead

Thread Next
Karl Williamson
August 27, 2011 09:08
Faster Latin-1 case changing pushed to blead
Message ID:
commit e1a8dbf543b3c24ee8aacaf571e19124bec0b7ae
  Author: Karl Williamson <>
  Date:   Mon Aug 22 09:26:09 2011 -0600

      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 
      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 

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

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About