regcomp.c: optimization for qr/[...]/il
authorKarl Williamson <khw@cpan.org>
Thu, 18 Feb 2016 04:17:46 +0000 (21:17 -0700)
committerKarl Williamson <khw@cpan.org>
Fri, 19 Feb 2016 03:44:02 +0000 (20:44 -0700)
commitfc2ed17c144434ee3dde93c77bd1cd59b52da134
tree986e71cbe77ca0993790afdc86c72fdcc53ae60e
parent7415a9c182cfb100de91c5cb7eb95ea63b23c7c5
regcomp.c: optimization for qr/[...]/il

Certain matches are calculated as being legal only when the current
execution time local is a UTF-8 one.  However, a character class can
have multiple components (and usually does), and some of those components
may be duplicates of some of these matches, and be valid regardless of
the locale.  This commit removes them from the tentative list, and if it
goes to zero, clears it.  This will improve execution time slightly.
regcomp.c