[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Know tell me that this is a bug???



Howdy!

Matthias opined:
[snip]
> 
> Your technique looks ok, but I would think that glueing all regexps together
> into a single regexp, i.e. "m!xyzzy|abc!o" instead of "m!xyzzy!o || m!abc!o"
> has the potential to be faster.
> 
The Camel book suggests that using the simple regexps with the short-circuit
operators tends to come out ahead. With a simple regexp, it can use 
Boyer-Moore instead of setting up the NFA. I think I saw this in the
efficiency chapter.

yours,
Michael Houghton

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch