perl-Class-Accessor-PackedString-Set - Like Class::Accessor::PackedString, but store attributes as they are set

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Class-Accessor-PackedString-Set
Package version 0.001
Package release alt1
Package architecture noarch
Package type rpm
Installed size 29.12 KB
Download size 29.12 KB
Official Mirror
This module is a builder for classes that use string as memory storage backend.
The string is initially empty when there are no attributes set. When an
attribute is set, string will be appended with this data:
| size        | description                        |
| 1 byte      | index of attribute                 |
| (pack size) | attribute value, encoded by pack() |
When another attribute is set, string will be further appended. When an
attribute is unset (undef'd), its entry will be removed in the string.
This module is similar to the Class::Accessor::PackedString manpage. Using string (of
pack()-ed data) is useful in situations where you need to create many (e.g.
thousands+) objects in memory and want to reduce memory usage, because
string-based objects are more space-efficient than the commonly used hash-based
objects. Unlike in Class::Accessor::PackedString, space is further saved by only
storing set attributes and not unset attributes. This particularly saves
significant space if you happen to have many attributes with usually only a few
of them set.
The downsides are: 1) you have to predeclare all the attributes of your class
along with their types (pack() templates); 2) you can only store data which can
be pack()-ed; 3) slower speed, because unpack()-ing and re-pack()-ing are done
everytime an attribute is accessed or set.
There is a maximum of 256 attributes.
=for Pod::Coverage .+


Package Version Architecture Repository
perl-Class-Accessor-PackedString-Set - - -


Name Value
/usr/share/perl5 -
rpmlib(PayloadIsLzma) -


Name Value
perl(Class/Accessor/PackedString/ = 0.001
perl-Class-Accessor-PackedString-Set = 0.001-alt1


Type URL
Binary Package perl-Class-Accessor-PackedString-Set-0.001-alt1.noarch.rpm
Source Package perl-Class-Accessor-PackedString-Set-0.001-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Class-Accessor-PackedString-Set rpm package:
    # sudo apt-get install perl-Class-Accessor-PackedString-Set



See Also

Package Description
perl-Class-Accessor-Ref-0.05-alt1_10.noarch.rpm Class-Accessor-Ref module for perl
perl-Class-Accessor-Tiny-0.10-alt1.noarch.rpm Perl Tiny Accessors for PBP
perl-Class-Accessor-TrackDirty-0.11-alt1.noarch.rpm Define simple entities stored in some places
perl-Class-Accessor-WithDefault-0.23-alt1.noarch.rpm Set Default Value Implement on Class::Accessor
perl-Class-AccessorMaker-1.1-alt1.noarch.rpm perl module Class-AccessorMaker
perl-Class-Action-0.4-alt1.noarch.rpm Basic command pattern obj undo/rollback actions
perl-Class-ActsLike-1.00-alt1.noarch.rpm Perl extension for identifying class behavior similarities
perl-Class-Agreement-0.02-alt1.noarch.rpm add contracts to your Perl classes easily
perl-Class-AlzaboWrapper-0.14-alt1.noarch.rpm Higher level wrapper around Alzabo Row and Table objects
perl-Class-Anonymous-0.03-alt1.noarch.rpm Truly private classes with private data for Perl5
perl-Class-ArrayObjects-1.03-alt2_8.noarch.rpm Class-ArrayObjects module for perl
perl-Class-Attrib-1.08-alt1.noarch.rpm perl module Class-Attrib
perl-Class-AutoAccess-0.03-alt1.noarch.rpm Zero code dynamic accessors implementation
perl-Class-AutoAccess-Deep-0.02-alt1.noarch.rpm perl module Class-AutoAccess-Deep
perl-Class-AutoClass-1.56-alt2.noarch.rpm Create get and set methods and simplify object initialization