Dear perl users,
I read a large file into a hash table. This hash table is used only once in the subroutine. I am very concern the memory usage, So I plan to realse the memory after used the hash table. The way I used is:
my %hash = ();
#read the large file into the hash table
%hash = ();
Do you think this way will really release memory usage?
By the way, I found the hash table use much more memory than the array. I think hash table and array use different data structrue. it need much more memory to matain the hash tabe structure. I hope what I find is useful.
Net yourself a bargain. Find great deals on eBay.