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

Sqlite explain plan log efficiency #2091

Merged
merged 3 commits into from
Sep 13, 2022

Conversation

tyrelr
Copy link
Contributor

@tyrelr tyrelr commented Sep 12, 2022

Reduce overhead of sqlite explain plan logging.

Partial fix for #1921

Very rough
`initial
real 3m26.159s
user 3m23.611s
sys 0m1.920s

capture program & operations by reference
real 3m7.704s
user 3m6.264s
sys 0m0.754s

use Vec instead of HashSet for results
real 1m24.922s
user 1m24.317s
sys 0m0.562s

check logging enabled before cloning result
real 1m17.668s
user 1m17.047s
sys 0m0.521s
`

@abonander
Copy link
Collaborator

Appreciate the cleanup here, I may wait on merging #1946 until 0.7.0 because I'm not sure how it will interact with null inference but it's nice to get some kind of performance win anyway.

@abonander abonander merged commit 8fca760 into launchbadge:main Sep 13, 2022
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