Skip to content

[6.2] Fix algorithmic bug causing exponential blowup in dependency analysis #2220

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

Merged
merged 1 commit into from
Jul 25, 2025

Conversation

bnbarham
Copy link
Contributor

(cherry picked from commit 18de710)

Explanation: Fixes a case of exponential time complexity in build target depth computation.
Original PRs: #2218
Risk: Extremely low - the check here just prevents unnecessary computation.
Testing: No extra tests, but this is NFC
Reviewers: @bnbarham

@bnbarham bnbarham requested a review from a team as a code owner July 24, 2025 18:41
@bnbarham
Copy link
Contributor Author

@swift-ci please test

@bnbarham
Copy link
Contributor Author

@swift-ci please test Windows platform

@bnbarham bnbarham merged commit 9a3ce13 into swiftlang:release/6.2 Jul 25, 2025
3 checks passed
@bnbarham bnbarham deleted the 6.2-cherry-target-depths branch July 25, 2025 16:51
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.

3 participants