1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
Source: libreadonly-xs-perl
Section: perl
Priority: optional
Build-Depends: debhelper (>= 6), perl (>= 5.8.8-11.1), quilt
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Uploaders: Damyan Ivanov <dmn@debian.org>, Roberto C. Sanchez <roberto@debian.org>
Standards-Version: 3.7.3
Homepage: http://search.cpan.org/dist/Readonly-XS/
Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libreadonly-xs-perl/
Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libreadonly-xs-perl/
Package: libreadonly-xs-perl
Architecture: any
Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends}
Recommends: libreadonly-perl
Description: Faster Readonly implementation
The Readonly module (q.v.) is an effective way to create non-modifiable
variables. However, it's relatively slow.
.
The reason it's slow is that is implements the read-only-ness of variables via
tied objects. This mechanism is inherently slow. Perl simply has to do a lot
of work under the hood to make tied variables work.
.
This module corrects the speed problem, at least with respect to scalar
variables. When Readonly::XS is installed, Readonly uses it to access the
internals of scalar variables. Instead of creating a scalar variable object
and tying it, Readonly simply flips the SvREADONLY bit in the scalar's FLAGS
structure.
|