in reply to Reading files too slow
If you'rr re-reading files during a single run, and the files are smallish (say <= 50k average ), then it might makes sense to slurp (read the entire file as a single string) them into an array or hash. 10k * 50k == 500MB, which is well with the reach of most machines these days.
|
|---|