http://www.perlmonks.org?node_id=1056028


in reply to Reduce CPU utilization time in reading file using perl

I'd say your best bet is to process the file one line at a time, as has already been suggested, and put the relevant information into a database. Once it's there, you can gather and extract the information you need -- and let the database engine worry about figuring out the best way to store it all.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

  • Comment on Re: Reduce CPU utilization time in reading file using perl