This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pp_iter: optimise integer setting in for (1..10) {}
authorDavid Mitchell <davem@iabyn.com>
Fri, 18 Dec 2015 16:36:54 +0000 (16:36 +0000)
committerDavid Mitchell <davem@iabyn.com>
Wed, 3 Feb 2016 09:18:35 +0000 (09:18 +0000)
commit47b96a1ee2295b21e1fe49a2f932525a990f6a04
tree5d7a16f7d84727c3ba0388db155f98c59711a6c9
parent6d3ca00e6379e48bc8092acc7a90d9ce838df013
pp_iter: optimise integer setting in for (1..10) {}

If the target SV is a simple SVt_IV, which it is likely to be,
just update it directly rather than calling sv_setiv()
pp_hot.c