-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Caching] Reduce the number of cas ID passed on frontend commandline #81264
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
base: main
Are you sure you want to change the base?
Conversation
please test with following PR: @swift-ci please smoke test |
ArrayRef<std::string> IncludeTrees, | ||
ArrayRef<std::string> IncludeTreeFileList) { | ||
assert(!FSRoots.empty() || !IncludeTrees.empty() || | ||
const std::string &IncludeTree, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we prefer StringRef
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The input is always a std::string
from FrontendOptions. I don't see StringRef is necessary and it adds overhead if not inlined.
ping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question, but otherwise LGTM
Using IncludeTree::FileList to concat the include tree file systems that are passed on the command-line. This significantly reduce the command-line size, and also makes the cache key computation a lot faster. rdar://148752988
f0ee535
to
ec6cdfa
Compare
@swift-ci please smoke test |
@swift-ci please smoke test linux platform |
@swift-ci please smoke test windows platform |
Using IncludeTree::FileList to concat the include tree file systems that are passed on the command-line. This significantly reduce the command-line size, and also makes the cache key computation a lot faster.
rdar://148752988