Think about Loose Coupling | |
PerlMonks |
Re: Out Of Memory error at 950MB with 14GB free RAMby Abigail-II (Bishop) |
on Feb 10, 2004 at 08:30 UTC ( [id://327854]=note: print w/replies, xml ) | Need Help?? |
950 Mb for a 50 Mb is a lot of memory, even for Perl.
How are you storing your file? As an array of characters?
Then the memory consumption is no surprise. But if you
store the file as a single string, you should consume about
50 Mb of memory.
I'd first try to find out what is causing the memory consumption. It might not even be related to your input. Something of the form $a [[1]] = 1; could cause the out of memory problem as well. Abigail
In Section
Seekers of Perl Wisdom
|
|