=encoding euc-jp =pod =head1 NAME Class::Accessor::Fast - より速い、しかしより拡張性の無い、アクセサ =head1 SYNOPSIS package Foo; use base qw(Class::Accessor::Fast); # set()かget()が無いことを除いてあとはClass::Accessorと同じ =head1 DESCRIPTION =begin original This is a somewhat faster, but less expandable, version of Class::Accessor. Class::Accessor's generated accessors require two method calls to accompish their task (one for the accessor, another for get() or set()). Class::Accessor::Fast eliminates calling set()/get() and does the access itself, resulting in a somewhat faster accessor. =end original これはClass::Accessorよりも幾分高速な、しかし拡張性の乏しいバージョン である。Class::Accessorによって生成されたアクセサは二つのメソッドを 呼び出すことによって、自らの仕事を達成している(一つはそのアクセサ用、 もう一つはset()/get()用)。Class::Accessor::Fastは、set()/get()の 呼び出しを排除し、それ自身でアクセスすることによって、いくらか高速な アクセサとなっている。 =begin original The downside is that you can't easily alter the behavior of your accessors, nor can your subclasses. Of course, should you need this later, you can always swap out Class::Accessor::Fast for Class::Accessor. =end original 欠点は、簡単にはアクセサおよびサブクラスの振る舞いを変更できないことだ。 もちろん、後で変更は必要になるはずで、いつでもClass::Accessor::Fastを Class::Accessorに置き換えることができる。 =pod =head1 EFFICIENCY =begin original L for an efficiency comparison. =end original 効率性の比較は L を参照。 =head1 AUTHOR Michael G Schwern =head1 SEE ALSO L