Name : perl-Hash-Type
| |
Version : 2.00
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.1.1
| Date : 2023-01-27 17:08:42
|
Group : Development/Libraries/Perl
| Source RPM : perl-Hash-Type-2.00-lp154.1.1.src.rpm
|
Size : 0.03 MB
| |
Packager : https://www_suse_com/
| |
Summary : Restricted, ordered hashes as arrays tied to a \"type\" (shared list of keys)
|
Description :
An instance of \'Hash::Type\' encapsulates a collection of field names, and is used to generate tied hashes, implemented internally as arrayrefs, and sharing the common list of fields.
The original motivation for this design was to spare memory, since the field names are shared. As it turns out, benchmarks show that this goal is not attained : memory usage is about 35% higher than Perl native hashes. However, this module also implements *restricted hashes* (hashes with a fixed set of keys that cannot be expanded) and of *ordered hashes* (the list of keys or list values are returned in a fixed order); and for those two functionalities, the performances of \'Hash::Type\' are very competitive with respect to those of other similar modules, both in terms of CPU and memory usage (see the \"BENCHMARKS\" section at the end of the documentation). In addition, \'Hash::Type\' offers an API for *convenient and very efficient sorting* of lists of tied hashes, and alternative methods for \'keys\', \'values\' and \'each\', faster than the perltie API.
In conclusion, this module is well suited for any need of restricted and/or ordered hashes, and for situations dealing with large collections of homogeneous hashes, like for example data rows coming from spreadsheets or databases.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-H/15.4/noarch |