Repository navigation
Commit 270d861
committed
perf: create the deque of NOT prefixes only for a negated condition
`Condition()` created a deque for leading `NOT` and `!` prefixes on every
call, though few conditions have one. An empty `ArrayDeque` allocates its
17-slot array up front, so parsing `performance.sql` allocated 585 KB per
parse for deques that stayed empty. The deque is now created at the first
`NOT` or `!`.1 parent a075737 commit 270d861
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12181 | 12181 | | |
12182 | 12182 | | |
12183 | 12183 | | |
12184 | | - | |
| 12184 | + | |
12185 | 12185 | | |
12186 | 12186 | | |
12187 | 12187 | | |
12188 | 12188 | | |
12189 | 12189 | | |
12190 | 12190 | | |
12191 | | - | |
| 12191 | + | |
| 12192 | + | |
| 12193 | + | |
| 12194 | + | |
| 12195 | + | |
| 12196 | + | |
| 12197 | + | |
12192 | 12198 | | |
12193 | 12199 | | |
12194 | 12200 | | |
| |||
12258 | 12264 | | |
12259 | 12265 | | |
12260 | 12266 | | |
12261 | | - | |
| 12267 | + | |
12262 | 12268 | | |
12263 | 12269 | | |
12264 | 12270 | | |
| |||
0 commit comments