in reply to Splitting Apache Log Files
It looks like you are recompiling each regular expression once for each line of input to be scanned. Compiling regular expressions can be expensive, so performance might be improved if you pre-compile all the regular expressions.
http://www.stonehenge.com/merlyn/UnixReview/col28.html provides a nice introduction to some of the options for compiling regular expressions.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Splitting Apache Log Files
by cmm7825 (Novice) on Apr 26, 2010 at 18:19 UTC | |
by crashtest (Curate) on Apr 26, 2010 at 19:01 UTC | |
by cmm7825 (Novice) on Apr 26, 2010 at 20:16 UTC | |
by BrowserUk (Patriarch) on Apr 26, 2010 at 21:02 UTC | |
by cmm7825 (Novice) on Apr 27, 2010 at 05:36 UTC | |
| |
by Marshall (Canon) on Apr 27, 2010 at 17:51 UTC |