Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It's like rpp_replace_at(), but it assumes that the SV has already had its refcount bumped. It replaces ugly code like SV *nsv = newSVsv(*svp); #ifdef PERL_RC_STACK rpp_replace(svp, nsv); SvREFCNT_dec(nsv); #else rpp_replace(svp, sv_2mortal(nsv)); #endif with a simple rpp_replace_at_norc(svp, newSvsv(*svp)); On PERL_RC_STACK builds it's more efficient than before as it's not unnecessarily bumping and then immediately unbumping nsv's refcount.
- Loading branch information
Showing
5 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.