On Fri, Jan 25, 2002 at 11:31:37AM -0600, [EMAIL PROTECTED] wrote:
> Greetings, On Friday, January 25, 2002, at 10:56  AM, 
> [EMAIL PROTECTED] wrote:
> 
> > /[fF][oO][oO]/ better than /foo/i
> >
> > That'd be Mr. RE Jeffrey Freidl in the Mastering RE/Owl book. 
> > The parser
> > has to do less backtracking or something.
> 
> 
> I have to disagree; while I have read the RE/Owl (I hear there is 
> another in the works?) I feel that
> 
> /[fF][oO][oO]/ lacks clarity over /foo/i
> 
> 
> You are correct, its butt-ugly but pg 280 goes over the details.  For the 
> word while (ugly vs. /i) /i is 50 times slower.  While he gets it down to 
> a mere 77% slower and cautions not to get hung up about it, it is worth 
> thinking about if you need the speed, esp. w/ a big RE.


I've heard the claim "50 times slower" often. But, although Benchmark.pm
should make it easy, I've yet to see anyone actually supporting their
claim with any evidence.

Cargo-cult programming is bad, but making cargo-cult claims is as bad.



Abigail

Reply via email to