diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-09-02 14:46:38 -0600 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-09-13 21:14:02 -0600 |
commit | 45fdf108c5f4d5c719b8d2f7389c81e54795bad7 (patch) | |
tree | 762c2b213f34c1467f50c28e5e1b2e7eec3375f9 /embedvar.h | |
parent | 612ead590b8b5f05e4060738540192ece946c340 (diff) | |
download | perl-45fdf108c5f4d5c719b8d2f7389c81e54795bad7.tar.gz |
regexec.c: Use new macros instead of swashes
A previous commit has caused macros to be generated that will match
Unicode code points of interest to the \X algorithm. This patch uses
them. This speeds up modern Korean processing by 15%.
Together with recent previous commits, the throughput of modern Korean
under \X has more than doubled, and is now comparable to other
languages (which have increased themselved by 35%)
Diffstat (limited to 'embedvar.h')
-rw-r--r-- | embedvar.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/embedvar.h b/embedvar.h index 877e81161f..d3eeaf03a0 100644 --- a/embedvar.h +++ b/embedvar.h @@ -353,16 +353,9 @@ #define PL_unitcheckav_save (vTHX->Iunitcheckav_save) #define PL_unlockhook (vTHX->Iunlockhook) #define PL_unsafe (vTHX->Iunsafe) -#define PL_utf8_X_L (vTHX->Iutf8_X_L) #define PL_utf8_X_LVT (vTHX->Iutf8_X_LVT) -#define PL_utf8_X_LV_LVT_V (vTHX->Iutf8_X_LV_LVT_V) -#define PL_utf8_X_RI (vTHX->Iutf8_X_RI) -#define PL_utf8_X_T (vTHX->Iutf8_X_T) -#define PL_utf8_X_V (vTHX->Iutf8_X_V) #define PL_utf8_X_extend (vTHX->Iutf8_X_extend) -#define PL_utf8_X_prepend (vTHX->Iutf8_X_prepend) #define PL_utf8_X_regular_begin (vTHX->Iutf8_X_regular_begin) -#define PL_utf8_X_special_begin (vTHX->Iutf8_X_special_begin) #define PL_utf8_alnum (vTHX->Iutf8_alnum) #define PL_utf8_alpha (vTHX->Iutf8_alpha) #define PL_utf8_blank (vTHX->Iutf8_blank) |