mirror of
https://github.com/Perl/perl5.git
synced 2026-01-26 08:38:23 +00:00
pp_print() optimise for void return
This function is often called in void context; don't push a result in void context which will will only be immediately popped again by the following nextstate or unstack op. On PERL_RC_STACK builds, this also avoids ++ing and --ing the return value's ref count. In unknown context it just assumes non-void, rather than incurring the cost of determining the caller's context.
This commit is contained in:
parent
c7715606ca
commit
52d6284a2f
Loading…
x
Reference in New Issue
Block a user