develooper Front page | perl.perl5.porters | Postings from May 2010

[perl #75018] PATCH: improve mktables performance; add option useful for development

From:
karl williamson
Date:
May 11, 2010 06:56
Subject:
[perl #75018] PATCH: improve mktables performance; add option useful for development
Message ID:
rt-3.6.HEAD-25438-1273530849-1543.75018-75-0@perl.org
# New Ticket Created by  karl williamson 
# Please include the string:  [perl #75018]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=75018 >


This series of patches improves the performance of mktables by
  1) using in-line the no overloading scheme to get a variable's address 
that was suggested by Nicholas and used earlier in a called subroutine

  2) not generating several tables that are most likely going to be 
thrown away (unless they aren't going to be thrown away, determined by 
changing some lists in the code).  These tables are used in the 
construction of other tables.  Prior to this patch, they were generated 
in case they were to be written out, and then the data in them copied to 
initialize the other tables.  Now, the other tables get the data 
directly, and the copy isn't generally needed.

Also, a new command line option is added to cause the tables that are 
written to have each line have the character name it is for.  This is 
slow and generates large tables without ranges, but it is useful during 
development to manually generate tables which can be compared with other 
ones, so you can eyeball the differences between two different 
properties, or between two releases of Unicode for the same property.



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