in reply to regexp performance on large logfiles

Considering that you seem to be using grep style patterns (which are much simpler than Perl patterns), have you checked whether using grep may be faster? You may even want to compare various implementations of "grep". Then again, if the patterns are simple, Perl might not use the regexp engine at all, and just let the optimizer do all the heavy work.
  • Comment on Re: regexp performance on large logfiles

Replies are listed 'Best First'.
Re^2: regexp performance on large logfiles
by snl_JYDawg (Initiate) on Aug 05, 2008 at 11:03 UTC

    Nope, in some cases perl is much faster, this is one. I'm quite fond of yea-old-shell-scripting but here perl is/was the smarter choice