On Wed, 29 Jan 2003 11:56:05 +0100, Perl Authors Upload Server wrote: > modid: Tie::CompactArray > DSLIP: cdprp > description: Space-efficient, numeric-only perl arrays. > userid: BROWSERUK (NJS) > chapterid: 6 (Data_Type_Utilities) > communities: > perlmonks.com > > similar: > Tie::SubstrHash >
What's the difference to the module Tie::CArray ? (I've never used it, but it seems to be written for the same purpose). > rationale: > > Similar in concept to Tie::SubstrHash, the idea is to trade speed > for space and flexibility to allow the creation of very large arrays > of numeric data whilst supporting all the standard array mechanisms. > > Packs fixed size numeric values in to a string. The use may specify > the size (pack format) used on creation. > > Preliminary measurements show that space for a 16 million element > float array can be reduced from over 500 MB to 125 MB. (Crude > measurements made, confirmation pending.). > > Supports all the standard mechanisms including push, pop, splice > delete and autovivification. Greetings, Janek