Skip to content

lazy sql-mode string#3452

Merged
jycor merged 5 commits intomainfrom
james/sql-mode
Mar 2, 2026
Merged

lazy sql-mode string#3452
jycor merged 5 commits intomainfrom
james/sql-mode

Conversation

@jycor
Copy link
Copy Markdown
Contributor

@jycor jycor commented Feb 27, 2026

This PR moves sqlModeString construction to the String() to avoid unnecessary sorting and string operations.
Additionally adds custom comma separating code to avoid library calls and memory allocations.

On my M4 Mac:
Original: 232.3 ns/op
Lazy String: 135.5 ns/op
Custom Sep: 105.3 ns/op

@jycor jycor merged commit 4b82066 into main Mar 2, 2026
8 checks passed
elianddb pushed a commit that referenced this pull request Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants