Name : perl-Class-XSAccessor-Array
| |
Version : 0.14
| Vendor : Mandriva
|
Release : 1mdv2009.1
| Date : 2009-01-23 11:51:07
|
Group : Development/Perl
| Source RPM : perl-Class-XSAccessor-Array-0.14-1mdv2009.1.src.rpm
|
Size : 0.03 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/2009.1/i586/media/contrib/release |