sv_newmortal() is faster than sv_2mortal(newSV(0))
Florian Ragwitz [Sat, 22 Aug 2009 09:27:11 +0000 (11:27 +0200)]
XS.xs

diff --git a/XS.xs b/XS.xs
index 07f0a9b..94ef956 100644 (file)
--- 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);