Commit bb40ff5
committed
regcomp_study.c - disable CURLYX optimizations when EVAL has been seen anywhere
Historically we disabled CURLYX optimizations when they
*contained* an EVAL, on the assumption that the optimization might
affect how many times, etc, the eval was called. However, this is
also true for CURLYX with evals *afterwards*. If the CURLYN or CURLYM
optimization can prune off the search space, then an eval afterwards
will be affected. An when you take into account GOSUB, it means that
an eval in front might be affected by an optimization after it.
So for now we disable CURLYN and CURLYM in any pattern with an EVAL.1 parent ad814ca commit bb40ff5
3 files changed
+20
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
87 | 90 | | |
| 91 | + | |
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2688 | 2688 | | |
2689 | 2689 | | |
2690 | 2690 | | |
| 2691 | + | |
2691 | 2692 | | |
2692 | 2693 | | |
2693 | 2694 | | |
2694 | 2695 | | |
2695 | | - | |
2696 | | - | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
| 2699 | + | |
2697 | 2700 | | |
2698 | 2701 | | |
2699 | 2702 | | |
2700 | 2703 | | |
| 2704 | + | |
2701 | 2705 | | |
2702 | 2706 | | |
2703 | 2707 | | |
2704 | 2708 | | |
2705 | 2709 | | |
2706 | 2710 | | |
2707 | | - | |
2708 | 2711 | | |
2709 | 2712 | | |
2710 | 2713 | | |
| |||
2741 | 2744 | | |
2742 | 2745 | | |
2743 | 2746 | | |
| 2747 | + | |
| 2748 | + | |
2744 | 2749 | | |
2745 | 2750 | | |
2746 | 2751 | | |
2747 | 2752 | | |
| 2753 | + | |
| 2754 | + | |
| 2755 | + | |
2748 | 2756 | | |
2749 | 2757 | | |
2750 | 2758 | | |
| |||
2753 | 2761 | | |
2754 | 2762 | | |
2755 | 2763 | | |
| 2764 | + | |
2756 | 2765 | | |
2757 | 2766 | | |
2758 | 2767 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
166 | 168 | | |
167 | 169 | | |
168 | 170 | | |
| |||
0 commit comments