in reply to Strange behaviour of the regex engine

Which version of the book are you reading? I would hope this is something explored in the book
  • Comment on Re: Strange behaviour of the regex engine

Replies are listed 'Best First'.
Re^2: Strange behaviour of the regex engine ( Benchmarks aren't everything )
by Anonymous Monk on Jan 06, 2015 at 01:45 UTC

    Yes the benchmarking chapter talks about it as does Benchmarks aren't everything ... as least thats my impression

    FWIW, I see similar times with 2008 perl-v5.8.9 and 2012 perl-5.16.1

      I'm reading 3rd version of this book. I think this issue has not been mentioned in the book. Anyway I use two simple techniques (alternation order and plus to prevent backtracking when parentheses are leaved for star) to optimize first regex.

      I read mentioned topic "Benchmarks aren't everything" but I think that it is not the source of problem in this case.

Re^2: Strange behaviour of the regex engine
by Anonymous Monk on Jan 06, 2015 at 01:11 UTC