Re: Speeding up recdescent...
[email protected] (Ted Zlatanov)
| Newsgroups | perl.recdescent |
|---|---|
| Organization | Cienfuegos |
| Message-ID | <[email protected]> |
Philip Newton <[email protected]> writes: > On Mon, 10 Dec 2001 14:02:33 -0500, [email protected] (Ted Zlatanov) > wrote: > >> Avoid the type_t declaration with an optional regex, you should use >> >> type_t : /ADD|ADDRANGE|DELETE|DELETERANGE/ > > Shouldn't the longer alternatives come before the shorter ones? > Otherwise 'ADDRANGE' would be matched by the /ADD/ part (unless you > anchor it, of chourse). Good point in general, though I doubt it will improve performance much for this specific case :) Ted