diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-12-27 00:11:12 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-12-27 00:43:06 -0800 |
commit | 3df49e2a4049e3f68e6d15eb1e3b3a34e58c3670 (patch) | |
tree | be95be74dca3a6401513b7e97a5496cc125c1ee7 /perl.c | |
parent | ce65bc731d80b5e2fa455f1e1f4feb618c82d259 (diff) | |
download | perl-3df49e2a4049e3f68e6d15eb1e3b3a34e58c3670.tar.gz |
Don’t check for tied @DB'args when not REAL
This should make things just a smidgen faster in the most common case.
As of the previous commit, tied arrays are always AvREAL.
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3889,9 +3889,9 @@ Perl_init_dbargs(pTHX) It might have entries, and if we just turn off AvREAL(), they will "leak" until global destruction. */ av_clear(args); + if (SvTIED_mg((const SV *)args, PERL_MAGIC_tied)) + sv_unmagic((const SV *)args, PERL_MAGIC_tied); } - if (SvTIED_mg((const SV *)args, PERL_MAGIC_tied)) - sv_unmagic((const SV *)args, PERL_MAGIC_tied); AvREIFY_only(PL_dbargs); } |