Welcome to the Monastery | |
PerlMonks |
Re^5: Making this script process 56,000 lines 5 times fasterby LanX (Saint) |
on Mar 22, 2018 at 18:58 UTC ( [id://1211562]=note: print w/replies, xml ) | Need Help?? |
Actually your original approach in the OP with for( split ...) had this problem. The while(m/.../) here is an iterator, you could operate with a sliding window to read consecutive chunks into memory, and adjust with pos where you left of.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|