in reply to Re: Efficient regex matching with qr//; Can I do better?
in thread Efficient regex matching with qr//; Can I do better?
Perhaps more advantageous would be moritz's suggestion to compile all the patterns into one massive alternation
I didn't suggest that, because I think I once benchmarked it, and seem to recall that at some point it degrades performance (perhaps over the weekend I'll see if I can dig out my benchmark again). I suggested to chose a number, let's say 1000 for a start, and aggregate only that many alternatives into a single regex, and loop over these assembled regexes then.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Efficient regex matching with qr//; Can I do better?
by kruppy (Initiate) on Jul 11, 2008 at 10:25 UTC | |
by moritz (Cardinal) on Jul 11, 2008 at 10:42 UTC | |
by ysth (Canon) on Jul 11, 2008 at 20:22 UTC | |
by tilly (Archbishop) on Jul 12, 2008 at 00:40 UTC | |
by ysth (Canon) on Jul 11, 2008 at 20:35 UTC | |
by kruppy (Initiate) on Jul 14, 2008 at 05:46 UTC | |
by ysth (Canon) on Jul 14, 2008 at 05:49 UTC |