perl-Data-Reuse - share constant values with Data::Alias

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports x86_64
Package filename perl-Data-Reuse-0.10-alt4.1.x86_64.rpm
Package name perl-Data-Reuse
Package version 0.10
Package release alt4.1
Package architecture x86_64
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 22.54 KB
Installed size 22.54 KB
By default, Perl doesn't share literal ( 0, 'foo' , "bar" ) values.  That's
because once a literal value is stored in variable (a container), the contents
of that container can be changed.  Even if such a container is marked
"read-only" (e.g. with a module such as the Scalar::ReadOnly manpage), it will not
cause the values to be shared.  So each occurrence of the same literal value
has its own memory location, even if it is internally marked as read-only.
In an ideal world, perl would keep a single copy of each literal value
(container) and have all occurrences in memory point to the same container.
Once an attempt is made to change the container would perl make a copy of the
container and put the new value in there.  This principle is usually referred
to as Copy-On-Write (COW).  Unfortunately, perl doesn't have this.
Comes in the the Data::Alias manpage module which allows you to share containers
between different variables (amongst other things).  But it still does not
allow you to have literal values share the same memory locations.
Comes in this module, the the Data::Reuse manpage module, which allows you to easily
have literal and read-only values share the same memory address.  Which can
save you a lot of memory when you are working with large data structures with
similar values.  Which is especially nice in a mod_perl environment, where
memory usage of persistent processes is one of the major issues..
Of course, no memory savings will occur for literal values that only occur
once.  So it is important that you use the functionality of this module
wisely, only on values that you expect to be duplicated at least two times.


Package Version Architecture Repository
perl-Data-Reuse-0.10-alt4.1.i586.rpm 0.10 i586 Autoimports
perl-Data-Reuse - - -


Name Value
/usr/share/perl5 -
perl(Data/ >= 1.160
perl(Digest/ -
perl( -
perl(Scalar/ -
perl( -
rpmlib(PayloadIsLzma) -


Name Value
perl(Data/ = 0.100
perl-Data-Reuse = 0.10-alt4.1


Type URL
Binary Package perl-Data-Reuse-0.10-alt4.1.x86_64.rpm
Source Package perl-Data-Reuse-0.10-alt4.1.src.rpm

Install Howto

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



See Also

Package Description
perl-Data-StreamDeserializer-0.06-alt5.1.x86_64.rpm non-blocking deserializer
perl-Data-StreamSerializer-0.07-alt4.1.x86_64.rpm non-blocking serializer
perl-Data-Swap-0.08-alt4_20.x86_64.rpm Data-Swap module for perl
perl-Data-TxnBuffer-0.05-alt4.1.x86_64.rpm binary read/write buffer supporting transaction read
perl-Data-UUID-LibUUID-0.05-alt4.1.x86_64.rpm uuid.h based UUID generation (versions 2 and 4
perl-Data-Undump-0.15-alt4.1.x86_64.rpm Perl extension for securely and quickly deserializing simple Data::Dumper dumps
perl-Database-Sophia-0.9-alt3.1.x86_64.rpm Sophia is a modern embeddable key-value database designed for a high load environment (XS for Sophi
perl-Dblink-1.0-alt4.1.x86_64.rpm perl module Dblink
perl-Debug-FaultAutoBT-0.02-alt4.1.x86_64.rpm perl module Debug-FaultAutoBT
perl-Debug-Runopt-1.01-alt4.1.x86_64.rpm perl module Debug-Runopt
perl-Deep-Encode-0.19-alt3.1.x86_64.rpm Bulk encoding and decoding strings in Perl data
perl-DestructAssign-0.002007-alt3.1.x86_64.rpm Destructuring assignment
perl-Devel-Assert-1.06-alt3.1.x86_64.rpm assertions for Perl >= 5.14
perl-Devel-CCompat-C99-ScopedVariables-0.002-alt3.1.x86_64.rpm tests support for C99 scoped variables
perl-Devel-CCompat-C99-VariableLengthArrays-0.002-alt3.1.x86_64.rpm tests support for C99 variable length arrays