Name : perl-Tie-PagedArray
| |
Version : 0.0.3
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.1.1
| Date : 2023-01-27 18:28:21
|
Group : Development/Libraries/Perl
| Source RPM : perl-Tie-PagedArray-0.0.3-lp154.1.1.src.rpm
|
Size : 0.02 MB
| |
Packager : https://www_suse_com/
| |
Summary : Tieable module for handling large arrays by paging
|
Description :
When processing a large volumes of data a program may run out of memory. The operating system may impose a limit on the amount of memory a process can consume or the machine may simply lack the required amount of memory.
Tie::PagedArray supports large arrays by implementing paging and avoids running out of memory. The array is broken into pages and these pages are pushed to disk barring the page that is in use. Performance depends on the device chosen for persistence of pages.
This module uses Storable as its backend for serialization and deserialization. So the elements of the paged array can be any value or object. See documentation for Storable module to work with code refs.
When switching pages data from the currently active page is offloaded from the memory onto the page file if the page is marked dirty. This is followed by deserializing the page file of the page to which the switch is to be made.
An active page is marked dirty by an *assignment* of a value to any element in the page. To forcibly mark a page dirty assign an element in the page to itself!
$large_array[2000] = $large_array[2000];
The defaults are \'page_size => 2000\', \'paging_dir => \".\"\'
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.4/noarch |