This module was written because I stumbled on some serious issues of Readonly
that aren't easily fixable without breaking backwards compatibility in subtle ways. In particular Readonly's use of ties is a source of subtle bugs and bad performance. Instead, this module uses the builtin readonly feature of perl, making access to the variables just as fast as any normal variable without the weird side-effects of ties. Readonly can do the same for scalars when Readonly::XS is installed, but chooses not to do so in the most common case. WWW: http://search.cpan.org/dist/Const-Fast/
This commit is contained in:
parent
461ea0f7f7
commit
d0f0aee88e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=266145
5 changed files with 41 additions and 0 deletions
|
@ -1366,6 +1366,7 @@
|
|||
SUBDIR += p5-Config-YAML
|
||||
SUBDIR += p5-ConfigReader
|
||||
SUBDIR += p5-ConfigReader-Simple
|
||||
SUBDIR += p5-Const-Fast
|
||||
SUBDIR += p5-Context-Preserve
|
||||
SUBDIR += p5-Contextual-Return
|
||||
SUBDIR += p5-Coro
|
||||
|
|
24
devel/p5-Const-Fast/Makefile
Normal file
24
devel/p5-Const-Fast/Makefile
Normal file
|
@ -0,0 +1,24 @@
|
|||
# New ports collection makefile for: p5-Const-Fast
|
||||
# Date created: 2010-12-12
|
||||
# Whom: Philip M. Gollucci <pgollucci@p6m7g8.com>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= Const-Fast
|
||||
PORTVERSION= 0.006
|
||||
CATEGORIES= devel perl5
|
||||
MASTER_SITES= CPAN
|
||||
MASTER_SITE_SUBDIR= ../../authors/id/L/LE/LEONT/
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= perl@FreeBSD.org
|
||||
COMMENT= Facility for creating read-only scalars, arrays, and hashes
|
||||
|
||||
RUN_DEPENDS= p5-Sub-Exporter>=0:${PORTSDIR}/devel/p5-Sub-Exporter
|
||||
|
||||
PERL_CONFIGURE= YES
|
||||
|
||||
MAN3= Const::Fast.3
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/p5-Const-Fast/distinfo
Normal file
2
devel/p5-Const-Fast/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (Const-Fast-0.006.tar.gz) = 611287d6df7e721225696332a0e23665aaf4074c0eee69634edb372a4069c176
|
||||
SIZE (Const-Fast-0.006.tar.gz) = 13864
|
9
devel/p5-Const-Fast/pkg-descr
Normal file
9
devel/p5-Const-Fast/pkg-descr
Normal file
|
@ -0,0 +1,9 @@
|
|||
This module was written because I stumbled on some serious issues of Readonly
|
||||
that aren't easily fixable without breaking backwards compatibility in subtle
|
||||
ways. In particular Readonly's use of ties is a source of subtle bugs and bad
|
||||
performance. Instead, this module uses the builtin readonly feature of perl,
|
||||
making access to the variables just as fast as any normal variable without
|
||||
the weird side-effects of ties. Readonly can do the same for scalars when
|
||||
Readonly::XS is installed, but chooses not to do so in the most common case.
|
||||
|
||||
WWW: http://search.cpan.org/dist/Const-Fast/
|
5
devel/p5-Const-Fast/pkg-plist
Normal file
5
devel/p5-Const-Fast/pkg-plist
Normal file
|
@ -0,0 +1,5 @@
|
|||
%%SITE_PERL%%/Const/Fast.pm
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Const/Fast/.packlist
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Const/Fast
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Const
|
||||
@dirrmtry %%SITE_PERL%%/Const
|
Loading…
Reference in a new issue