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
...
 
#release memory
%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.
 
Thanks
 
Org
 

_________________________________________________________________
Net yourself a bargain. Find great deals on eBay.
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Frover%2Eebay%2Ecom%2Frover%2F1%2F705%2D10129%2D5668%2D323%2F4%3Fid%3D10&_t=763807330&_r=hotmailTAGLINES&_m=EXT

Reply via email to