This software summary describes a non-memory-resident array object, which is a type of software data structure that is designed not to remain in memory when not in use. This type of object is typically used in situations where memory usage must be optimized to ensure that resources are efficiently utilized.
With PDL::DiskCache, you can write prototype code that uses a Perl list of a few PDLs, then scale up to millions of PDLs simply by handing the prototype code a DiskCache tied array instead of a native Perl array. Such flexibility makes PDL::DiskCache efficient in operations where you have to look at a large collection of PDLs.
PDL::DiskCache operates using two methods: NON-OO and OO. With NON-OO, you can use "tie @a,'PDL::DiskCache', @files, \%options;", while with OO, "$a = diskcache(@files,\%options);" can be used. Alternatively, "$a = new PDL::DiskCache(@files,\%options);" can also be used.
The software works by storing individual PDLs on disk and swapping some of them into memory on a FIFO basis. This process makes it possible for you to handle millions of PDLs that would otherwise be impossible with traditional Perl arrays. Additionally, you can set whether the data are read-only or writeable.
PDL::DiskCache requires an array ref containing a list of file names, @files, and a hash ref containing options for the PDL::DiskCache object (see "TIEARRAY" below for details), \%options. By using PDL::DiskCache, you can streamline your programming, making it more efficient and effective.
Version 2.4.4: N/A