in reply to Optimizing Memory consumption

DBM::Deep has something in it's README
REAL-TIME COMPRESSION EXAMPLE Here is a working example that uses the *Compress::Zlib* module to do real-time compression / decompression of keys & values with DBM::Deep Filters. Please visit <http://search.cpan.org/search?module=Compress::Zlib> for more on *Compress::Zlib*. use DBM::Deep; use Compress::Zlib; my $db = new DBM::Deep( file => "foo-compress.db", filter_store_key => \&my_compress, filter_store_value => \&my_compress, filter_fetch_key => \&my_decompress, filter_fetch_value => \&my_decompress, );

I'm not really a human, but I play one on earth. Cogito ergo sum a bum