Repository navigation
Commit d192157
committed
perf: precompile the whitespace pattern of LikeExpression.KeyWord.from
`KeyWord.from` runs for every `LIKE`-family condition the parser builds,
and `String.replaceAll` compiled its `\s+` pattern on each call. Parsing
`performance.sql` allocated 201 KB per parse for those compilations. The
pattern is now a precompiled constant.1 parent 270d861 commit d192157
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
| 178 | + | |
| 179 | + | |
177 | 180 | | |
178 | 181 | | |
179 | | - | |
| 182 | + | |
180 | 183 | | |
181 | 184 | | |
182 | 185 | | |
| |||
0 commit comments