diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-04-28 23:43:42 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-05-21 21:37:10 -0700 |
commit | 213aa87d36f7cebec966c5e70cad7b91ccc7fb01 (patch) | |
tree | 957fd78cf6e3c35e2169c16b4b089d5405e1c9a2 /op.c | |
parent | 39e3b1bcb1568b34b8b8303630cb1bc8dad1eb14 (diff) | |
download | perl-213aa87d36f7cebec966c5e70cad7b91ccc7fb01.tar.gz |
op.c: Remove a redundant ck_subr call from dofile
newUNOP(OP_ENTERSUB, ...) already calls ck_subr, so wrapping it in
ck_subr(...) is unnecessary and wasteful of precious CPU time.
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4859,10 +4859,10 @@ Perl_dofile(pTHX_ OP *term, I32 force_builtin) } if (gv && GvCVu(gv) && GvIMPORTED_CV(gv)) { - doop = ck_subr(newUNOP(OP_ENTERSUB, OPf_STACKED, + doop = newUNOP(OP_ENTERSUB, OPf_STACKED, op_append_elem(OP_LIST, term, scalar(newUNOP(OP_RV2CV, 0, - newGVOP(OP_GV, 0, gv)))))); + newGVOP(OP_GV, 0, gv))))); } else { doop = newUNOP(OP_DOFILE, 0, scalar(term)); |