Commit 8be535e
perf: optimize make_word() to avoid unnecessary allocations
- Skip uppercase allocation entirely for quoted identifiers since they
are never keywords
- Use to_ascii_uppercase() instead of to_uppercase() since SQL keywords
are ASCII-only, avoiding Unicode case conversion overhead
This is a hot path called for every identifier/keyword token in queries.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 6550ec8 commit 8be535e
1 file changed
Lines changed: 13 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
417 | 428 | | |
418 | 429 | | |
419 | 430 | | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
| 431 | + | |
426 | 432 | | |
427 | 433 | | |
428 | 434 | | |
| |||
0 commit comments