in reply to How to improve speed of reading big files
You seem to be using pretty structured data (maybe the wrong word here, sorry), yet only one of your regexps is anchored. If you know the position of certain strings (especially /Running|Dump|FromCB|Update/o), you could gain some speedup by anchoring, even if you have to resort to assigning to pos.
Another thing would be to precompile or use the /o modifier on your substitutions, since &filterLog gets called so often.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to improve speed of reading big files
by korlaz (Novice) on Sep 18, 2009 at 07:57 UTC | |
by bv (Friar) on Sep 18, 2009 at 13:46 UTC | |
by Anonymous Monk on Sep 18, 2009 at 08:59 UTC |