This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Refactor \X regex handling to avoid a typical case table lookup
authorKarl Williamson <public@khwilliamson.com>
Tue, 28 Aug 2012 21:25:48 +0000 (15:25 -0600)
committerKarl Williamson <public@khwilliamson.com>
Tue, 28 Aug 2012 22:24:47 +0000 (16:24 -0600)
commit27d4fc33343f0dd4287f0e7b9e6b4ff67c5d8399
treef9b098ce06e0da7f0285f9b34c59edd1dec2168a
parent9914684df30835d5561d6d2a768b82e5d8cb535b
Refactor \X regex handling to avoid a typical case table lookup

Prior to this commit 98.4% of Unicode code points that went through \X
had to be looked up to see if they begin a grapheme cluster; then looked
up again to find that they didn't require special handling.  This commit
refactors things so only one look-up is required for those 98.4%.  It
changes the table generated by mktables to accomplish this, and hence
the name of it, and references to it are changed to correspond.
embed.fnc
embed.h
embedvar.h
intrpvar.h
lib/unicore/mktables
proto.h
regexec.c
sv.c
utf8.c