diff options
author | David Mitchell <davem@iabyn.com> | 2012-11-29 11:37:08 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2012-12-04 10:22:20 +0000 |
commit | b492a59ed90fecea7508c6bc9601fb08e0212721 (patch) | |
tree | 2ffd98b7627093fd896f40ee77ace420f4d684e8 /inline.h | |
parent | 03dba56127506a6979ee0298da57d71840dee39d (diff) | |
download | perl-b492a59ed90fecea7508c6bc9601fb08e0212721.tar.gz |
Optimise magic handling in save* and leave_scope
There are several places that have code similar to
if (SvMAGICAL(sv)) {
PL_localizing = 2;
SvSETMAGIC(sv)
PL_localizing = 0;
}
The condition is sub-optimal (it should only test for set magic), and the
SvSETMAGIC repeats a similar test.
Other places didn't have the outer condition, so they set PL_localizing
twice even when not needed.
Diffstat (limited to 'inline.h')
0 files changed, 0 insertions, 0 deletions