Skip to content

Commit bcea112

Browse files
k-takatanobu
authored andcommitted
Revert "[tune] implicit-anchor optimization"
This reverts commit 282338f88a8bf0807a7a1d21b06f78abe9de8fac. It seems that the commit didn't improve the performance. Revert it to fix k-takata/Onigmo#100. k-takata/Onigmo@cef834c
1 parent 981ee02 commit bcea112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

regcomp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5254,7 +5254,7 @@ optimize_node_left(Node* node, NodeOptInfo* opt, OptEnv* env)
52545254
r = optimize_node_left(qn->target, &nopt, env);
52555255
if (r) break;
52565256

5257-
if (/*qn->lower == 0 &&*/ IS_REPEAT_INFINITE(qn->upper)) {
5257+
if (qn->lower == 0 && IS_REPEAT_INFINITE(qn->upper)) {
52585258
if (env->mmd.max == 0 &&
52595259
NTYPE(qn->target) == NT_CANY && qn->greedy) {
52605260
if (IS_MULTILINE(env->options))

0 commit comments

Comments
 (0)