This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
op.c: Two more boolean %hash optimisations
authorFather Chrysostomos <sprout@cpan.org>
Tue, 28 Aug 2012 08:22:13 +0000 (01:22 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 28 Aug 2012 08:23:06 +0000 (01:23 -0700)
commit9e7f031c1856270daeb95d2b6db9817469855476
treee450c62ec9b64c5e89be524a5efc2a067117b847
parent60f40a389519ab4482a60df44e5e9a03c8710752
op.c: Two more boolean %hash optimisations

In commit c8fe3bdf72 I used the wrong flag for ?:, causing it to slow
down unless the ?: was in void context.

OP_NOT has been sensitive to void context all along, which was never
necessary.

These two should be just as fast.  The second should not be slower:

!%hash;
!!%hash;
op.c