RFR 8225198 : Optimize regex tree for greedy quantifiers of type {N, }
Claes Redestad
claes.redestad at oracle.com
Tue Jun 4 08:47:31 UTC 2019
Hi Ivan,
looks good to me.
/Claes
On 2019-06-03 21:54, Ivan Gerasimov wrote:
> Hello!
>
> When building a match-tree, the regex engine optimizes '*' and '+'
> greedy quantifiers by using special node of type CharPropertyGreedy.
>
> This later class can be used unmodified for other greedy quantifiers
> without the upper limit, i.e. of type '{N,}'.
>
> Would you please help review this simple optimization?
>
> BUGURL: https://bugs.openjdk.java.net/browse/JDK-8225198
> WEBREV: http://cr.openjdk.java.net/~igerasim/8225198/00/webrev/
>
> (With the fix, one unused class was also removed. This class was to
> implement conditionals, which were never supported by Java regexs.)
>
More information about the core-libs-dev
mailing list