Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@elliottt
Copy link
Collaborator

Copying the whole file table while indexing is quite expensive, and avoiding that would save us some time. We can minimally copy the GlobalState used by indexing threads, and populate their file table with a single entry for each file that they're processing.

Motivation

Performance. Indexing happens a lot for package-directed type checking, and paying the cost of copying the file table every time is not acceptable.

Test plan

Existing tests.

@elliottt elliottt force-pushed the trevor/avoid-file-table-copy-index branch from c28ad3c to 8619305 Compare October 23, 2025 03:38
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