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

[startup optimization] IndexStore: Check if table is empty faster #11718

Conversation

kiminuo
Copy link
Collaborator

@kiminuo kiminuo commented Oct 18, 2023

This PR shaves off ~800ms of startup time on my machine.

The reason is that we counted the number of rows precisely but we don't need to check it precisely, we just need to know if the table is empty or not.

Copy link
Collaborator

@adamPetho adamPetho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK

@kiminuo kiminuo merged commit 6c67767 into WalletWasabi:master Oct 18, 2023
7 checks passed
@kiminuo kiminuo deleted the feature/2023-10-18-IndexStore-optimize-start branch October 18, 2023 12:57
adamPetho pushed a commit that referenced this pull request Nov 28, 2023
adamPetho added a commit that referenced this pull request Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants