Re: [pcre-dev] Which limit is hit?
|This message is part of the following thread:|
|the complete thread tree sorted by date|
|Jean-Christophe Deschamps at|
> the pattern is always compiled to byte code first, and JIT converts > it back, so using JIT alone does not help.
> The reason of not using an iterator in the interpreter is > practical: PCRE interpreter uses stack recursion, and you cannot > easily share variable data across function calls. This is not a > problem for single character iterators, but matching brackets would > require inspecting the machine stack. Finding the previous call of > an iterator on the stack chain and getting local data from it is > difficult (in C at least). Instead the byte code of a subpattern is > repeated so there is no need for tracking the iterator count.