Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intern column names so we always get the same string #486

Merged
merged 2 commits into from
Jan 27, 2024

Conversation

tenderlove
Copy link
Member

When we get column names back from the database, it's very common to always return the same strings. This patch uses Ruby's "interned string" API so that we're always getting the same string objects back from the database.

Fixes: #155

When we get column names back from the database, it's very common to
always return the same strings. This patch uses Ruby's "interned string"
API so that we're always getting the same string objects back from the database.

Fixes: #155
ext/sqlite3/statement.c Outdated Show resolved Hide resolved
@flavorjones flavorjones merged commit ea0cb80 into main Jan 27, 2024
101 checks passed
@flavorjones flavorjones deleted the intern-column-names branch January 27, 2024 16:12
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.

return symbolized keys when using results_as_hash = true
3 participants