Skip to content

Speed up autocomplete index generation with a single SQLite transaction - #10596

Open
ashovlin wants to merge 1 commit into
v2from
shovlia/ac-index-transaction
Open

Speed up autocomplete index generation with a single SQLite transaction#10596
ashovlin wants to merge 1 commit into
v2from
shovlia/ac-index-transaction

Conversation

@ashovlin

Copy link
Copy Markdown
Member

Issue #, if available: #8889

Description of changes: Speeds up the autocomplete index generation by wrapping it in a single transaction.

I was looking at our CI timing, and this seems especially slow on Windows - spot-checking another PR, install-dependencies is 3-4 minutes on Linux/MacOS, but ~15 minutes on Windows. It should also benefit source installation users and package maintainers as suggested in the issue.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ashovlin
ashovlin requested a review from a team as a code owner August 23, 2026 00:25
def generate_index(self, clidriver):
for indexer in self._indexers:
indexer.generate_index(clidriver)
for index_builder in self._indexers:

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This was shadowing an import.

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