- Name: perl-Class-XSAccessor-Array
- Version: 1.40.0
- Release: 1mdv2010.0
- Epoch:
- Group: Development/Perl
- License: GPL+ or Artistic
- Url: http://search.cpan.org/dist/Class-XSAccessor-Array
- Summary: Generate fast XS accessors without runtime compilation
- Architecture: i586
- Size: 55688
- Distribution: Mandriva Linux
- Vendor: Mandriva
- Packager: Jérôme Quelin <jquelin@mandriva.org>
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:
- BuildArch:
- ExcludeArch:
- ExclusiveArch:
- Cookie: n2.mandriva.com 1246947388
- Buildhost: n2.mandriva.com