|File Search||Catalog||Content Search|
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.
Readonly/XS version 1.04 ======================== This is a companion module to Readonly.pm. You do not use Readonly::XS directly. Instead, once it is installed, Readonly.pm will detect this and will use it for creating read-only scalars. This results in a significant speed improvement. This does not speed up read-only arrays or hashes. INSTALLATION To install this module, do the standard P more»
XS(3pm) User Contributed Perl Documentation XS(3pm) NAME Readonly::XS - Companion module for Readonly.pm, to speed up read-only scalar variables. VERSION This document describes version 1.04 of Readonly::XS, December 6, 2005. SYNOPSIS Install this module, but do not use it. DESCRIPTION The Readonly module (q.v.) is an effective way more»
libreadonly-xs-perl (1.04-2+b3) sid; urgency=low * Binary-only non-maintainer upload for s390; no source changes. * Rebuild against perl 5.14 -- s390 Build Daemon (zandonai) <email@example.com> Tue, 15 Nov 2011 06:25:33 +0000 libreadonly-xs-perl (1.04-2) unstable; urgency=low [ gregor herrmann ] * debian/rules: delete /usr/share/perl5 only if it exists. * Add p more»
Revision history for Perl extension Readonly::XS. 1.04 2005 December 6 - No code changes; more»
This is the debian package for the Readonly-XS module. It was created by Damyan Ivanov <firstname.lastname@example.org more»