This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Don't restart parse for /d to /u if reparsing anyway
authorKarl Williamson <khw@cpan.org>
Wed, 7 Nov 2018 01:10:36 +0000 (18:10 -0700)
committerKarl Williamson <khw@cpan.org>
Fri, 16 Nov 2018 17:48:19 +0000 (10:48 -0700)
commitd1be211cd36639caeb3c7482759d9bed530ecaad
tree441cebda3258e8c8abd7d07670c4f4defa0075ce
parent523a2924740c68b1653d1c68aea5c8d7fb9161e4
regcomp.c: Don't restart parse for /d to /u if reparsing anyway

Prior to this commit, if the rules changed from /d to /u, 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.

Doing this can avoid the need for an almost full extra reparse.
regcomp.c