in reply to Re: Strange behaviour of the regex engine
in thread Strange behaviour of the regex engine

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

  • Comment on Re^2: Strange behaviour of the regex engine ( Benchmarks aren't everything )

Replies are listed 'Best First'.
Re^3: Strange behaviour of the regex engine ( Benchmarks aren't everything )
by thof (Initiate) on Jan 06, 2015 at 19:04 UTC

    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.