Name : perl-Class-XSAccessor-Array
| |
Version : 1.40.0
| Vendor : Mandriva
|
Release : 1mdv2010.0
| Date : 2009-07-07 08:16:41
|
Group : Development/Perl
| Source RPM : perl-Class-XSAccessor-Array-1.40.0-1mdv2010.0.src.rpm
|
Size : 0.04 MB
| |
Packager : Jérôme Quelin < jquelin_mandriva_org>
| |
Summary : Generate fast XS accessors without runtime compilation
|
Description :
The module implements fast XS accessors both for getting at and setting an object attribute. Additionally, the module supports mutators and simple predicates (\'has_foo()\' like tests for definedness of an attributes). The module works only with objects that are implemented as *arrays*. Using it on hash-based objects is bound to make your life miserable. Refer to the Class::XSAccessor manpage for an implementation that works with hash-based objects.
A simple benchmark showed more than a factor of two performance advantage over writing accessors in Perl.
Since version 0.10, the module can also generate simple constructors (implemented in XS) for you. Simply supply the \'constructor => \'constructor_name\'\' option or the \'constructors => [\'new\', \'create\', \'spawn\']\' option. These constructors do the equivalent of the following perl code:
|
RPM found in directory: /vol/rzm6/linux-mandriva/official/2010.0/i586/media/contrib/release |