in reply to Improving script's speed and performance...

some sparse tought: can you put the biggest file's data into a database? can you compare times running against the DB and against the file?

sysread can be faster than the implicit read of the diamond operator.
A Super Search for big file and huge file (plus some link from my homenode)

L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.