in reply to Re^5: Speeding up named capture buffer access
in thread Speeding up named capture buffer access
I'm more interested in elegance (and maintainability) than in the optimization. I rewrote all of the regexps in Date::Manip to use named buffers, and I'm not interested in going back to numbered buffers.
As an example, in one place in Date::Manip, I match a set of related regular expressions that match various date strings, and there are 23 different possibilities containing 65 different matches between them (NOT all in the same order), so manually counting all of the match positions, while doable, basically renders that code static and unmaintainable... a simple change to the regexps leads to a very tedious and error-prone piece of work to maintain it. I think that's the worse case... but there are a several other cases that are almost as bad.
That said, I want as much optimization as I can, within that constraint, and that's the basis for my question.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^7: Speeding up named capture buffer access
by ikegami (Patriarch) on Dec 01, 2009 at 17:56 UTC | |
by SBECK (Chaplain) on Dec 01, 2009 at 18:08 UTC | |
by ikegami (Patriarch) on Dec 01, 2009 at 18:18 UTC | |
by SBECK (Chaplain) on Dec 01, 2009 at 19:29 UTC | |
by ikegami (Patriarch) on Dec 01, 2009 at 19:49 UTC | |
Re^7: Speeding up named capture buffer access
by JadeNB (Chaplain) on Dec 01, 2009 at 19:34 UTC | |
by SBECK (Chaplain) on Dec 01, 2009 at 20:18 UTC | |
by BrowserUk (Patriarch) on Dec 01, 2009 at 20:42 UTC |