summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authoryves orton <unknown>2006-11-17 01:48:14 -0800
committerH.Merijn Brand <h.m.brand@xs4all.nl>2006-11-17 20:25:27 +0000
commitcf2a2b693556595262000bd111376253d237e7a7 (patch)
tree7a1d881b6a09076f11ac104f63e96cb98b05894a /regcomp.c
parent336b16029e7686b3273193f6fde31a5cece4cff2 (diff)
downloadperl-cf2a2b693556595262000bd111376253d237e7a7.tar.gz
[perl #22395] regexp /(.*)[bc]/ 10000 times slower in 5.8.0 vs 5.6.1
From: "yves orton via RT" <perlbug-followup@perl.org> Message-ID: <rt-3.5.HEAD-1666-1163785693-404.22395-15-0@perl.org> p4raw-id: //depot/perl@29310
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index a69d0b3768..f8052a12bb 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -4207,7 +4207,8 @@ reStudy:
first = NEXTOPER(first);
goto again;
}
- else if (!sawopen && (OP(first) == STAR &&
+ else if ((!sawopen || !RExC_sawback) &&
+ (OP(first) == STAR &&
PL_regkind[OP(NEXTOPER(first))] == REG_ANY) &&
!(r->reganch & ROPT_ANCH) )
{