more useful options | |
PerlMonks |
Speed and memory issue with large filesby firmament (Novice) |
on Mar 19, 2010 at 16:34 UTC ( [id://829651]=perlquestion: print w/replies, xml ) | Need Help?? |
firmament has asked for the wisdom of the Perl Monks concerning the following question: Hello, I'm using the following primitive script to take a look at a particular line in a very large (3 gb) file. It takes forever (more than 30-40 minutes) though, so I'm wondering if anyone has any suggestions as to how to make this faster?
Doing the equivalent in AWK took 3 minutes, but as I need to expand this I'd prefer if I could stay with Perl. On a sidenote I ran out of memory if I used a simple while loop, which surprised me as that shouldn't slurp the file as say a foreach? Thanks in advance.
Back to
Seekers of Perl Wisdom
|
|