Skip to content

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

Merged
ellie merged 1 commit into
mainfrom
ellie/daemon-no-open-sqlite
May 25, 2024
Merged

perf: only open the database for commands if strictly required#2043
ellie merged 1 commit into
mainfrom
ellie/daemon-no-open-sqlite

Conversation

@ellie

@ellie ellie commented May 25, 2024

Copy link
Copy Markdown
Member

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