From: Shawn M Moore Date: Tue, 9 Dec 2008 06:39:26 +0000 (+0000) Subject: Always inline predicate and clearer methods X-Git-Tag: 0.64~22 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7975db4f5242f20f21628a01ce9d2d521cebb150;p=gitmo%2FMoose.git Always inline predicate and clearer methods --- diff --git a/Changes b/Changes index abc167b..5afd507 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,9 @@ Revision history for Perl extension Moose +0.64 + * Moose::Meta::Method::Accessor + - Always inline predicate and clearer methods (Sartak) + 0.63 Mon, December 8, 2008 * Moose::Unsweetened - Some small grammar tweaks and bug fixes in non-Moose example diff --git a/lib/Moose/Meta/Method/Accessor.pm b/lib/Moose/Meta/Method/Accessor.pm index d908b2e..9fab4d7 100644 --- a/lib/Moose/Meta/Method/Accessor.pm +++ b/lib/Moose/Meta/Method/Accessor.pm @@ -111,6 +111,8 @@ sub _value_needs_copy { sub generate_reader_method { shift->generate_reader_method_inline(@_) } sub generate_writer_method { shift->generate_writer_method_inline(@_) } sub generate_accessor_method { shift->generate_accessor_method_inline(@_) } +sub generate_predicate_method { shift->generate_predicate_method_inline(@_) } +sub generate_clearer_method { shift->generate_clearer_method_inline(@_) } sub _inline_pre_body { '' } sub _inline_post_body { '' } @@ -311,6 +313,10 @@ role in the optimization strategy we are currently following. =item B +=item B + +=item B + =item B =item B