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 error strings #20

Merged
merged 1 commit into from
Jan 25, 2025
Merged

intern error strings #20

merged 1 commit into from
Jan 25, 2025

Conversation

charlievieth
Copy link
Owner

This changes the error message cache to intern the error strings/messages. The reasoning for this change is that sqlite3 has a finite number of constant error strings, but potential misuse of the cache could lead to it growing unbounded with a large number of essentially duplicate error messages.

@charlievieth charlievieth force-pushed the cev/error-cache branch 2 times, most recently from e5ebd83 to 834eb60 Compare January 25, 2025 03:10
This changes the error message cache to intern the error
strings/messages. The reasoning for this change is that sqlite3 has a
finite number of constant error strings, but potential misuse of the
cache could lead to it growing unbounded with a large number of
essentially duplicate error messages.
@charlievieth charlievieth merged commit 1e51e93 into master Jan 25, 2025
4 checks passed
@charlievieth charlievieth deleted the cev/error-cache branch January 25, 2025 03:30
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.

1 participant