Map in a file as a Perl variable using mmap(2)
The Mmap module lets you use mmap to map in a file as a Perl variable rather than reading the file into dynamically allocated memory. The advantage of this is that several processes may share one copy of the file or string, saving memory, and concurrently making changes to portions of the file or string. When not used with a file, it is an alternative to SysV shared memory that places no arbitrary size limits on the shared memory area, and efficiently handles sparse memory usage.
$
pkg install p5-Sys-MmapOrigin
devel/p5-Sys-Mmap
Size
45.7KiB
License
ART10, GPLv1+
Maintainer
perl@FreeBSD.org
Dependencies
1 packages
Required by
4 packages