Commit a920600
authored
fix/search: measure regexp literals in runes (#1149)
The trigram optimizer operates on rune trigrams, but its eligibility check measured UTF-8 bytes. This sent short non-ASCII literals through an inconsistent planning path and could produce surprising composite trees.
Use the parsed rune count so the optimizer and substring planner apply the same threshold.1 parent c4a225a commit a920600
2 files changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
628 | | - | |
| 628 | + | |
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| |||
0 commit comments