get_all_methods memoized in immutable
Yuval Kogman [Fri, 15 Aug 2008 18:56:08 +0000 (18:56 +0000)]
lib/Class/MOP/Class.pm

index 1f86040..0eb6eb2 100644 (file)
@@ -1089,7 +1089,9 @@ sub create_immutable_transformer {
         /],
         memoize     => {
            class_precedence_list             => 'ARRAY',
-           linearized_isa                    => 'ARRAY',
+           linearized_isa                    => 'ARRAY', # FIXME perl 5.10 memoizes this on its own, no need?
+           get_all_methods                   => 'ARRAY',
+           #get_all_attributes               => 'ARRAY', # it's an alias, no need, but maybe in the future
            compute_all_applicable_attributes => 'ARRAY',
            get_meta_instance                 => 'SCALAR',
            get_method_map                    => 'SCALAR',