develooper Front page | perl.perl5.porters | Postings from December 2011

again with the sparse arrays.

Thread Next
From:
David Nicol
Date:
December 27, 2011 23:05
Subject:
again with the sparse arrays.
Message ID:
CAFwScO8t7ekUdWthXZGdHhaSOKPCZ0ZhAhhanBbzgJ1MzD0nXg@mail.gmail.com
I have just uploaded a sparse array
implementation to CPAN.

TipJar::sparse::array::perl::hashbased uses
a hash for storage and an array for listing
existing keys in order; it provides

   sparse my @SparseArray;
   $SparseArray[30123123]="hello";

without requiring using a hundred megabytes
of memory.

I didn't take a name like "Array::Sparse"
because it isn't up to a standard deserving
that yet: it is neither in XS nor does it use trees.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About