Commit 4928624
perf: remove unnecessary string clone in maybe_concat_string_literal
Replace `s.clone().as_str()` with just `s` since `s` is already a
`&String` which can be passed directly to `push_str()`.
This removes one String allocation per concatenated string literal
when parsing SQL with adjacent string literals like 'foo' 'bar'.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 845e213 commit 4928624
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11299 | 11299 | | |
11300 | 11300 | | |
11301 | 11301 | | |
11302 | | - | |
| 11302 | + | |
11303 | 11303 | | |
11304 | 11304 | | |
11305 | 11305 | | |
| |||
0 commit comments