The Class::XSAccessor::Array 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. A simple benchmark showed more than a factor of two performance advantage over writing accessors in Perl. WWW: http://search.cpan.org/dist/Class-XSAccessor-Array/ PR: ports/132406 Submitted by: Cezary Morga <cm at therek.net>
This commit is contained in:
parent
04870e2f0c
commit
4c2c3d9591
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=230142
5 changed files with 48 additions and 0 deletions
|
@ -1097,6 +1097,7 @@
|
|||
SUBDIR += p5-Class-Workflow
|
||||
SUBDIR += p5-Class-XPath
|
||||
SUBDIR += p5-Class-XSAccessor
|
||||
SUBDIR += p5-Class-XSAccessor-Array
|
||||
SUBDIR += p5-Clone
|
||||
SUBDIR += p5-Clone-Fast
|
||||
SUBDIR += p5-Clone-More
|
||||
|
|
24
devel/p5-Class-XSAccessor-Array/Makefile
Normal file
24
devel/p5-Class-XSAccessor-Array/Makefile
Normal file
|
@ -0,0 +1,24 @@
|
|||
# New ports collection makefile for: p5-Class-XSAccessor-Array
|
||||
# Date created: March 8th 2009
|
||||
# Whom: Cezary Morga <cm@therek.net>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= Class-XSAccessor-Array
|
||||
PORTVERSION= 0.14
|
||||
CATEGORIES= devel perl5
|
||||
MASTER_SITES= CPAN
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= cm@therek.net
|
||||
COMMENT= Perl5 module for unloading classes
|
||||
|
||||
BUILD_DEPENDS= ${SITE_PERL}/AutoXS/Header.pm:${PORTSDIR}/devel/p5-AutoXS-Header
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS}
|
||||
|
||||
PERL_CONFIGURE= YES
|
||||
|
||||
MAN3= Class::XSAccessor::Array.3
|
||||
|
||||
.include <bsd.port.mk>
|
3
devel/p5-Class-XSAccessor-Array/distinfo
Normal file
3
devel/p5-Class-XSAccessor-Array/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
MD5 (Class-XSAccessor-Array-0.14.tar.gz) = fe97bdfbfdcfb37260a270d0d8bd4b36
|
||||
SHA256 (Class-XSAccessor-Array-0.14.tar.gz) = 929da139de9c9820ca7c4a7b24bdc991b33080ee3b5adba19f9e57970cfa2412
|
||||
SIZE (Class-XSAccessor-Array-0.14.tar.gz) = 46342
|
10
devel/p5-Class-XSAccessor-Array/pkg-descr
Normal file
10
devel/p5-Class-XSAccessor-Array/pkg-descr
Normal file
|
@ -0,0 +1,10 @@
|
|||
The Class::XSAccessor::Array 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.
|
||||
|
||||
A simple benchmark showed more than a factor of two performance advantage over
|
||||
writing accessors in Perl.
|
||||
|
||||
WWW: http://search.cpan.org/dist/Class-XSAccessor-Array/
|
10
devel/p5-Class-XSAccessor-Array/pkg-plist
Normal file
10
devel/p5-Class-XSAccessor-Array/pkg-plist
Normal file
|
@ -0,0 +1,10 @@
|
|||
%%SITE_PERL%%/%%PERL_ARCH%%/Class/XSAccessor/Array.pm
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/XSAccessor/Array/.packlist
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/XSAccessor/Array/Array.bs
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/XSAccessor/Array/Array.so
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/XSAccessor/Array
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/XSAccessor
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Class
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Class/XSAccessor
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Class
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%
|
Loading…
Reference in a new issue