160,000 * 300 is 45M items (48,000,000). Multiply that by whatever the size of each element is plus Perl's internal overhead and you're talking a good amount of memory. Since you're reading the entire contents of your file into RAM most likely what's happening is you're spending most of your time waiting for the OS to swap things in and out of RAM. Consider using something like BerkelyDB or the like to provide random access to your data from an on-disk hash instead.
In reply to Re: Perl Filehandle?
by Fletch
in thread Perl Filehandle?
by Smersh2000
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |