T
timnels
I've tried using DBM:eep to store a large hash on disk since I am
getting "Out of memory" errors. It works, but runs too slow, so I was
considering using ?DBM_File to attempt the same thing, something like:
$inputs = {};
tie(%{$inputs}, 'NDBM_File', 'foo', O_RDWR|O_CREAT, 0666)
or die "Couldn't tie SDBM file 'foo': $!; aborting";
and then checking "ps" as it's adding 200,000 records, it seems to be
chewing up memory as I add those keys whereas DBM:eep doesn't. Am I
missing something obvious here?
Thanks.
getting "Out of memory" errors. It works, but runs too slow, so I was
considering using ?DBM_File to attempt the same thing, something like:
$inputs = {};
tie(%{$inputs}, 'NDBM_File', 'foo', O_RDWR|O_CREAT, 0666)
or die "Couldn't tie SDBM file 'foo': $!; aborting";
and then checking "ps" as it's adding 200,000 records, it seems to be
chewing up memory as I add those keys whereas DBM:eep doesn't. Am I
missing something obvious here?
Thanks.