http://qs321.pair.com?node_id=1160643


in reply to How to optimize a regex on a large file read line by line ?

How long are the lines in your file? and how many lines is it reading in total? Maybe reading it a line at a time is not the best approach for your data set.