-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #13849 - epage:no-infer, r=weihanglo
perf(toml): Avoid inferring when targets are known ### What does this PR try to resolve? We read the file system to infer two different data points - Implicit targets - Implicit `path` values for targets I took a shortcut for this case and recognize the scenario where we can bypass both and do so. I went with a bypass, rather than this being integrating into the inferring code because the inferring code is complex and I didn't want to add to it further in isolating the inferring to only when its needed. The validation gets duplicated because having it in the middle of the resolve code provides a better user experience and it would be messy to add the conditionals to get all of that working. I at least worked to keep the duplicated validation close to each other. ### How should we test and review this PR? ### Additional information
- Loading branch information
Showing
1 changed file
with
119 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters