Skip to content

Deduplicate result field name strings - #750

Merged
larskanis merged 1 commit into
ged:masterfrom
dersam:deduplicate-result-field-names
Sep 18, 2026
Merged

larskanis merged 1 commit into
ged:masterfrom
dersam:deduplicate-result-field-names

Conversation

@dersam

@dersam dersam commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Share frozen column-name strings across results on Ruby 3.0 and later to reduce duplicate allocations.

Other adapters used in Rails (Trilogy, sqlite, mysql2) already do column name string interning.

<=2.7 preserves the existing freeze-only behavior.

See rails/rails#58803 for original discussion.

@larskanis
larskanis merged commit 32f6006 into ged:master Sep 18, 2026
36 checks passed
@larskanis

Copy link
Copy Markdown
Collaborator

Looks good! Thank you!

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