inject empty DESTRUCT method for performance improvement.
Tokuhiro Matsuno [Sat, 6 Dec 2008 05:50:42 +0000 (05:50 +0000)]
lib/Mouse/Meta/Method/Destructor.pm

index 09e23bc..935be3b 100644 (file)
@@ -16,7 +16,7 @@ sub generate_destructor_method_inline {
             }
             join "\n", @code;
         } else {
-            return; # no demolish =)
+            return 'sub { }'; # no demolish =)
         }
     };