You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working on large-scale projects, we often have modules that are indexing-heavy but do not require code completion, navigation, or other indexing-related features in Xcode. These modules may be generated code, third-party libraries, or internal tools that are rarely edited directly.
Currently, Xcode allows global indexing settings,(defaults write com.apple.dt.XCode IDEIndexDisable 1) but there is no fine-grained control to disable indexing on a per-target or per-module basis. Disabling indexing entirely is not ideal, as most of the project still benefits from it.
Feature request: It would be nice to have an option to opt-out of indexing, which SWBTaskConstruction / Product Planning phases can take into account and not produce indexing / preparingForIndex tasks.
The text was updated successfully, but these errors were encountered:
Interesting idea. @bnbarham do you think there are cases where this could meaningfully improve performance? And if so, whether changes in Swift Build would be the right layering for that?
When working on large-scale projects, we often have modules that are indexing-heavy but do not require code completion, navigation, or other indexing-related features
Could you expand on this? While the modules themselves may not be edited, presumably they have dependents where they would be required. If so, the modules still need to be produced when preparing for semantic functionality in the dependent targets.
Index while building can be disabled through a build setting today (COMPILER_INDEX_STORE_ENABLE), so this request is really for disabling background indexing. This seems a little strange to have in the build system though, since it has nothing to do with the build itself.
When working on large-scale projects, we often have modules that are indexing-heavy but do not require code completion, navigation, or other indexing-related features in Xcode. These modules may be generated code, third-party libraries, or internal tools that are rarely edited directly.
Currently, Xcode allows global indexing settings,(
defaults write com.apple.dt.XCode IDEIndexDisable 1
) but there is no fine-grained control to disable indexing on a per-target or per-module basis. Disabling indexing entirely is not ideal, as most of the project still benefits from it.Feature request: It would be nice to have an option to opt-out of indexing, which SWBTaskConstruction / Product Planning phases can take into account and not produce indexing / preparingForIndex tasks.
The text was updated successfully, but these errors were encountered: