Message416266
My PR methods are suboptimal, so I closed them.
The number of REPEAT can be counted when compiling a pattern, and allocate a `SRE_REPEAT` array in `SRE_STATE` (with that number items).
It seem at any time, a REPEAT will only have one in active, so a `SRE_REPEAT` array is fine.
regex module does like this:
https://github.com/mrabarnett/mrab-regex/blob/hg/regex_3/_regex.c#L18287-L18288
Can the number of REPEAT be placed in `SRE_OP_INFO`?
And add a field to `SRE_OP_REPEAT` to indicate the index of this REPEAT. |
|
| Date |
User |
Action |
Args |
| 2022-03-29 15:13:16 | malin | set | recipients:
+ malin, vstinner, ezio.melotti, mrabarnett, abacabadabacaba, serhiy.storchaka, alexei.romanov |
| 2022-03-29 15:13:16 | malin | set | messageid: <[email protected]> |
| 2022-03-29 15:13:16 | malin | link | issue23689 messages |
| 2022-03-29 15:13:16 | malin | create | |
|