Tie::IntegerArray

Provides a tied array of packed integers of any bit length
Download

Tie::IntegerArray Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Sam Tregar
  • Publisher web site:
  • http://search.cpan.org/~wonko/

Tie::IntegerArray Tags


Tie::IntegerArray Description

Provides a tied array of packed integers of any bit length Tie::IntegerArray is a Perl module that provides an array interface to packed array of integers. A packed array of integers is useful in situations where you need to store a large set of integers in as small a space as possible. Access to the packed array will be significantly slower than access to a normal array but for many applications the reduction in memory usage makes this a good trade-off.SYNOPSIS use Tie::IntegerArray; # an array of signed 16-bit integers with no undef support and # starting room for 100,000 items. You can expect this to consume a # bit more than 200K of memory versus more than 800K for a normal # Perl array. my @integer_array; tie @integer_array, 'Tie::IntegerArray', bits => 16, signed => 1, undef => 0, size => 100_000; # put a value in $integer_array = 10; # and print it out print "Int 0: $integer_array\n"; # the full range of array operations are available Requirements: · Perl


Tie::IntegerArray Related Software