This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Don't restart parse now if doing so later
authorKarl Williamson <khw@cpan.org>
Wed, 7 Nov 2018 01:02:07 +0000 (18:02 -0700)
committerKarl Williamson <khw@cpan.org>
Fri, 16 Nov 2018 17:48:18 +0000 (10:48 -0700)
commit523a2924740c68b1653d1c68aea5c8d7fb9161e4
tree87ade84a78e2664e942b899dafb4bfed3faed1e6
parent2ac479f0aebdb9a80e57fb49182be8ddfed7a35f
regcomp.c: Don't restart parse now if doing so later

Prior to this commit, if it became apparent that long branches were
going to be needed, the parse was immediately restarted.  This commit
changes that so that it doesn't do this if it is known that the parse
will be redone anyway, but a full parse needs to done first in order to
count the parentheses.

This can avoid an almost complete reparse in some situations.
regcomp.c