summaryrefslogtreecommitdiff
path: root/pp_pack.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-04-24 23:10:05 +0000
committerNicholas Clark <nick@ccl4.org>2007-04-24 23:10:05 +0000
commit9444d2138b6b5264fb9381e43188986db5564e80 (patch)
treec56e68d0cadd5c59c7f243be82a7cef277d14b40 /pp_pack.c
parentbdc0bf6fc8e477f7c30b05ea4c2ff791dd0f31af (diff)
downloadperl-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.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/pp_pack.c b/pp_pack.c
index 8e4993294d..7aa95a9747 100644
--- a/pp_pack.c
+++ b/pp_pack.c
@@ -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));