This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
reduce cost of SvVALID()
authorDavid Mitchell <davem@iabyn.com>
Sun, 13 Nov 2016 14:59:32 +0000 (14:59 +0000)
committerDavid Mitchell <davem@iabyn.com>
Sun, 13 Nov 2016 15:27:34 +0000 (15:27 +0000)
commit4e8879f34cd1f40280a3be7b04ebda760dcaf0f2
tree159b5857e71a950b6ef5ff46903e6b68e994cf26
parent5741d7e61dd47767bf5a0fde98f3fe94c6b2f2bb
reduce cost of SvVALID()

Now that SvVALID() no longer just checks an SV flag, but instead checks
for the existence of a certain type of magic, avoid using this more
expensive macro when its not really needed.

Also, and an extra flag test to SvVALID() to make it fail quicker.
gv.h
sv.c
sv.h
util.c