Repository navigation
Commit 0c8073f
committed
perf: create the deque of NOT tokens only for a NOT condition
`Condition()` created a deque for the tokens of a leading `NOT` on every
call, though few conditions have one. Each empty `ArrayDeque` allocates
its 16-slot array up front, so parsing `performance.sql` allocated
585 KB more per parse. The deque is now created at the first `NOT`.1 parent e8de6e9 commit 0c8073f
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12394 | 12394 | | |
12395 | 12395 | | |
12396 | 12396 | | |
12397 | | - | |
| 12397 | + | |
12398 | 12398 | | |
12399 | 12399 | | |
12400 | 12400 | | |
| |||
12403 | 12403 | | |
12404 | 12404 | | |
12405 | 12405 | | |
12406 | | - | |
| 12406 | + | |
| 12407 | + | |
| 12408 | + | |
| 12409 | + | |
| 12410 | + | |
| 12411 | + | |
12407 | 12412 | | |
12408 | 12413 | | |
12409 | 12414 | | |
| |||
0 commit comments