GeezerVison is showing github.com — General Refactor by TheRustifyer · Pull Request #72 · zerodaycode/Canyon-SQL
Conversation
TheRustifyer
commented
May 1, 2025
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
✅ Legitimate Performance Improvements (likely contributors):
Singleton Initialization:
-
Canyon::init() now runs once and reuses the global instance.
-
Previous versions may have re-initialized the configuration and connections on every test (especially if instance() panicked and tests had to restart initialization).
-
This new OnceLock approach means fewer file reads, fewer TOML parses, and fewer Runtime::new() calls.
Avoiding Re-parsing the config file:
Connection Caching:
- DatabaseConnection::new() is now called only once per datasource.
- Previously, each test might have created fresh connections or runtimes.
Tokio Runtime Reuse:
- Creating and dropping a Runtime is expensive. Now you’re reusing a single one.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…nput, avoiding storing intermediate state
…the underlying db type for the connection
…builder operations macros
…nyon_macros to their own separate modules
chore: getting concrete column value from row on CanyonRows
…nnoying coupling with the gssapi headers
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
gbm25
Awaiting requested review from gbm25
gbm25 is a code owner
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
General refactor
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.