Skip to content

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Sep 14, 2025

Since the indexing performance of most projects is bound by target preparation instead of actual indexing right now, I wasn’t able to measure any performance benefits of this. But it seems like a good thing to add regardless, because it might save CPU cycles.

Fixes #1268

@ahoppen
Copy link
Member Author

ahoppen commented Sep 14, 2025

@swift-ci Please test

…files

We should not take the number of files in an `UpdateIndexStoreTaskDescription` as an indication on how important the task is. If we do need this functionality, eg. because we want to update the index of files with syntactic matches for a rename term, this should be communicated using a specific purpose similar to `TargetPreparationPurpose`. Since the only reason we update the index store for a file right now is background indexing, such a check is not needed.
@ahoppen ahoppen force-pushed the multi-file-indexing branch from 231214d to d1981de Compare September 20, 2025 14:26
@ahoppen
Copy link
Member Author

ahoppen commented Sep 20, 2025

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Sep 20, 2025

@swift-ci Please test Windows

@bnbarham
Copy link
Contributor

Thanks! Exciting to see this in :)

if let uri = uris.only {
header = "Build settings for \(uri.forLogging)"
} else if let firstUri = uris.first {
header = "Build settings for \(firstUri.forLogging) and \(firstUri) and \(uris.count - 1) others"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
header = "Build settings for \(firstUri.forLogging) and \(firstUri) and \(uris.count - 1) others"
header = "Build settings for \(firstUri.forLogging) and \(uris.count - 1) others"

Copy link
Contributor

Choose a reason for hiding this comment

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

(tests have already passed, another PR is fine)

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.

Support indexing of multiple files in a single swift-frontend invocation
2 participants