From: Yuval Kogman Date: Fri, 15 Aug 2008 18:56:08 +0000 (+0000) Subject: get_all_methods memoized in immutable X-Git-Tag: 0_64_01~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f341854361ebaef6d8223cf54268fd80bcae5aaa;p=gitmo%2FClass-MOP.git get_all_methods memoized in immutable --- diff --git a/lib/Class/MOP/Class.pm b/lib/Class/MOP/Class.pm index 1f86040..0eb6eb2 100644 --- a/lib/Class/MOP/Class.pm +++ b/lib/Class/MOP/Class.pm @@ -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',