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

Faster Latin-1 case changing pushed to blead

Thread Next
From:
Karl Williamson
Date:
August 27, 2011 09:08
Subject:
Faster Latin-1 case changing pushed to blead
Message ID:
4E59166D.3000706@khwilliamson.com
commit e1a8dbf543b3c24ee8aacaf571e19124bec0b7ae
  Author: Karl Williamson <public@khwilliamson.com>
  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 
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.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About