summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-12-27 00:11:12 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-12-27 00:43:06 -0800
commit3df49e2a4049e3f68e6d15eb1e3b3a34e58c3670 (patch)
treebe95be74dca3a6401513b7e97a5496cc125c1ee7 /perl.c
parentce65bc731d80b5e2fa455f1e1f4feb618c82d259 (diff)
downloadperl-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl.c b/perl.c
index b064da691b..a24947c8f3 100644
--- a/perl.c
+++ b/perl.c
@@ -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);
}