summaryrefslogtreecommitdiff
path: root/regen/mk_invlists.pl
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2014-01-02 09:47:03 -0700
committerKarl Williamson <public@khwilliamson.com>2014-01-09 14:05:41 -0700
commit4ca628a7f666f410b60d9cf9ad30ede43272dc2e (patch)
tree1f03921b00bac597f082706b38d6607eabc93ea0 /regen/mk_invlists.pl
parentd8c15def11fac2bdc01fd23b3623c1e92dbaf27d (diff)
downloadperl-4ca628a7f666f410b60d9cf9ad30ede43272dc2e.tar.gz
Compile in list of foldable code points
When constructing what matches code points under /i, Perl uses an inversion list of all the possible code points that participate in folds. This number is relatively few compared to the possible universe of code points, as most of the world's scripts aren't cased, and many characters in the scripts that do fold aren't foldable (such as punctuation). Prior to this commit, the list for the above-Latin1 code points was read-in from disk if and only if needed. This commit causes the list to be added to read-only data in a C header, trading a little space in Perl's text segment for speed at execution. This will enable ripping out some code in this and future commits (offsetting the space used by this one).
Diffstat (limited to 'regen/mk_invlists.pl')
-rw-r--r--regen/mk_invlists.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/regen/mk_invlists.pl b/regen/mk_invlists.pl
index c95e86b72d..d7cb99215b 100644
--- a/regen/mk_invlists.pl
+++ b/regen/mk_invlists.pl
@@ -196,6 +196,7 @@ for my $prop (qw(
XPosixWord
PosixXDigit
XPosixXDigit
+ _Perl_Any_Folds
&NonL1_Perl_Non_Final_Folds
&_Perl_Multi_Char_Folds
&UpperLatin1