summaryrefslogtreecommitdiff
path: root/configure.gnu
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2017-07-11 13:43:26 +0100
committerDavid Mitchell <davem@iabyn.com>2017-07-27 11:30:23 +0100
commit7be75ccf16313d987eb5a6e9ff6aec9fea4ef3d4 (patch)
treeccbcd506c330c9798f660a9506c99d27f9b72c12 /configure.gnu
parent748f2c65599942147442f443949449a965f6d608 (diff)
downloadperl-7be75ccf16313d987eb5a6e9ff6aec9fea4ef3d4.tar.gz
optimise @array in boolean context
It's quicker to return (and to test for) &PL_sv_zero or &PL_sv_yes, than setting a targ to an integer value or, in the vase of padav, creating a mortal sv and setting it to an integer value. In fact for padav, even in the scalar but non-boolean case, return &PL_sv_zero if the value is zero rather than creating and setting a mortal.
Diffstat (limited to 'configure.gnu')
0 files changed, 0 insertions, 0 deletions