sv_newmortal() is faster than sv_2mortal(newSV(0))
Nicholas Clark [Fri, 21 Aug 2009 20:50:26 +0000 (21:50 +0100)]
ext/mro/mro.xs

index 6fb37fb..f8a1ee7 100644 (file)
@@ -533,7 +533,7 @@ mro__nextcan(...)
             }
 
             /* we found a real sub here */
-            sv = sv_2mortal(newSV(0));
+            sv = sv_newmortal();
 
             gv_efullname3(sv, cvgv, NULL);