-
Notifications
You must be signed in to change notification settings - Fork 133
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
Feature to opt out of tracking .swiftdoc and .swiftsourceinfo Files #1179
Feature to opt out of tracking .swiftdoc and .swiftsourceinfo Files #1179
Conversation
f5d2a8c
to
ff4db66
Compare
Can you also update the PR description with the changes to names and behavior? It will be used for the body of the merged commit. |
Oh yes, updated! |
Ohh, also, do we need to adjust anything in the worker for incremental generation? |
@chiragramani what was the rough magnitude of the performance win? |
I tried out the batch mode feature, and the builds worked fine! But I might be missing some scenarios. Can you suggest other tests for incremental generation? I'd like to check those out too.
I tested this for a smaller set to see the impact when there are no cache-hits. Also, we are not using |
There is the |
This PR introduces configuration options aimed at optimizing CI build processes by excluding non-essential Swift documentation and source info files, files that don't serve as inputs to other build targets. By introducing flags to control the exclusion of these files, we aim to reduce unnecessary network I/O and improve build performance in specific CI environments. (non-dev facing only)
Features Introduced:
swift.emit_swiftdoc
SwiftInfo
provider, though they will still be generated by the Swift compiler.swift.emit_swiftsourceinfo
SwiftInfo
provider.It is important to note that, by default, the Swift compiler generates .swiftdoc and .swiftsourceinfo files as part of the output when using the
-emit-module
flag. As of now, this behavior is consistent, given the absence of compiler options in Swift that permit controlling the generation of these files.