diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-04-24 23:10:05 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-04-24 23:10:05 +0000 |
commit | 9444d2138b6b5264fb9381e43188986db5564e80 (patch) | |
tree | c56e68d0cadd5c59c7f243be82a7cef277d14b40 /pp_pack.c | |
parent | bdc0bf6fc8e477f7c30b05ea4c2ff791dd0f31af (diff) | |
download | perl-9444d2138b6b5264fb9381e43188986db5564e80.tar.gz |
Make PL_uudmap a constant global. Remove the run time initialisation
code, and instead use it to generate a header at perl build time.
By removing uudmap from the interpreter structure we save 256 bytes
per child thread.
p4raw-id: //depot/perl@31059
Diffstat (limited to 'pp_pack.c')
-rw-r--r-- | pp_pack.c | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -2082,22 +2082,6 @@ S_unpack_rec(pTHX_ tempsym_t* symptr, const char *s, const char *strbeg, const c break; #endif case 'u': - /* MKS: - * Initialise the decode mapping. By using a table driven - * algorithm, the code will be character-set independent - * (and just as fast as doing character arithmetic) - */ - if (PL_uudmap[(U8)'M'] == 0) { - size_t i; - - for (i = 0; i < sizeof(PL_uuemap); ++i) - PL_uudmap[(U8)PL_uuemap[i]] = i; - /* - * Because ' ' and '`' map to the same value, - * we need to decode them both the same. - */ - PL_uudmap[(U8)' '] = 0; - } { const STRLEN l = (STRLEN) (strend - s) * 3 / 4; sv = sv_2mortal(newSV(l)); |