devel/p5-Readonly-XS 1.05_2 DragonFly
Companion module for Readonly.pm, to speed up read-only scalar variables
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 9.2 KiB, 17.7 KiB installed
Description
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 arrays and hashes are not sped up by this, since the SvREADONLY flag only works for scalars. Arrays and hashes always use the tie interface.
Programs that you write do not need to know whether Readonly::XS is installed or not. They should just "use Readonly" and let Readonly worry about whether or not it can use XS. If the Readonly::XS is present, Readonly will be faster. If not, it won't. Either way, it will still work, and your code will not have to change.
Your program can check whether Readonly.pm is using XS or not by examining the $Readonly::XSokay variable. It will be true if the XS module was found and is being used. Please do not change this variable.
In the other systems
The newest version among them is 1.05, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| DragonFly | devel/p5-Readonly-XS | 1.05_2 newest | none known | - | [email protected] | - |
| FreeBSD | devel/p5-Readonly-XS | 1.05_2 newest | none known | - | [email protected] | - |
| OpenBSD | devel/p5-Readonly-XS | 1.05p5 newest | no data | - | The OpenBSD ports mailing-list <[email protected]> | - |
| NetBSD | devel/p5-Readonly-XS | 1.05nb17 newest | none known | - | [email protected] | 2026-07-16 |
| HardenedBSD | devel/p5-Readonly-XS | 1.05_2 newest | no data | - | [email protected] | - |
| GhostBSD | devel/p5-Readonly-XS | 1.05_2 newest | no data | - | [email protected] | - |
Install
Binary package:
pkg install p5-Readonly-XS
From DPorts:
cd /usr/dports/devel/p5-Readonly-XS && make install clean
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.
Dependencies
Run dependencies 2
No port depends on this one.