This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pp_iter(): optimise stack handling
authorDavid Mitchell <davem@iabyn.com>
Sat, 17 Oct 2015 09:53:10 +0000 (10:53 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 3 Feb 2016 09:18:29 +0000 (09:18 +0000)
commit8a1f10dd1e1964fa64cd0dff7196cf3f1f503ae1
tree1310af3fdb36a05a49605ae10eaa89119995ee33
parent93661e56c6b52b1bf34963a3a62b2a766381cccd
pp_iter(): optimise stack handling

Make pp_enteriter() do EXTEND(SP,1); then there's no need for pp_iter() to
check for space to push PL_sv_yes/no each time round the loop.

Since the only stack manipulation in pp_iter is now just pushing a boolean
at the end, remove dSP etc and just directly push to PL_stack_sp at the
end.
pp_ctl.c
pp_hot.c