8000 perf: only open the database for commands if strictly required by ellie · Pull Request #2043 · atuinsh/atuin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

perf: only open the database for commands if strictly required #2043

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

Merged
merged 1 commit into from
May 25, 2024

Conversation

ellie
Copy link
Member
@ellie ellie commented May 25, 2024

The client commands would open sqlite, even if not 100% required

Remove this for

  1. history start/end with daemon enabled
  2. shell init

Init seems to be around 2ms faster on my system, with this change.

Checks

  • I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle
  • I have checked that there are no existing pull requests for the same thing

The client commands would open sqlite, even if not 100% required

Remove this for

1. history start/end
2. shell init

Init seems to be around 2ms faster on my system, with this change.
@ellie ellie force-pushed the ellie/daemon-no-open-sqlite branch from c954da1 to 437040f Compare May 25, 2024 09:20
@ellie ellie merged commit 40543eb into main May 25, 2024
@ellie ellie deleted the ellie/daemon-no-open-sqlite branch May 25, 2024 10:58
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
0