From: Florian Ragwitz Date: Sat, 22 Aug 2009 09:27:11 +0000 (+0200) Subject: sv_newmortal() is faster than sv_2mortal(newSV(0)) X-Git-Tag: 0.12_02~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=eac662db2bbb457c48260376c5ee1e2cf472a514;p=gitmo%2FClass-C3-XS.git sv_newmortal() is faster than sv_2mortal(newSV(0)) --- diff --git a/XS.xs b/XS.xs index 07f0a9b..94ef956 100644 --- a/XS.xs +++ b/XS.xs @@ -407,7 +407,7 @@ XS(XS_Class_C3_XS_nextcan) } /* we found a real sub here */ - sv = sv_2mortal(newSV(0)); + sv = sv_newmortal(); gv_efullname3(sv, cvgv, NULL);