Skip to content

[Dependency Scanning] Unique collected cross-import overlay files with a set #79809

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
Mar 10, 2025

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Mar 5, 2025

Resolves rdar://146141228

@artemcm
Copy link
Contributor Author

artemcm commented Mar 5, 2025

@swift-ci smoke test

@@ -254,7 +254,7 @@ ModuleDependencyInfo::collectCrossImportOverlayNames(
ModuleDecl::collectCrossImportOverlay(ctx, file, moduleName,
bystandingModule);
result[bystandingModule] = std::move(overlayNames);
overlayFiles.push_back({moduleName.str(), file.str()});
overlayFiles.insert({moduleName.str(), file.str()});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

collectCrossImportOverlay is not exactly cheap. Can we skip if we know the entry is in the set already?

@artemcm
Copy link
Contributor Author

artemcm commented Mar 6, 2025

@swift-ci smoke test Linux platform

3 similar comments
@artemcm
Copy link
Contributor Author

artemcm commented Mar 6, 2025

@swift-ci smoke test Linux platform

@artemcm
Copy link
Contributor Author

artemcm commented Mar 7, 2025

@swift-ci smoke test Linux platform

@artemcm
Copy link
Contributor Author

artemcm commented Mar 7, 2025

@swift-ci smoke test Linux platform

@artemcm artemcm merged commit cd7db23 into swiftlang:main Mar 10, 2025
3 checks passed
@artemcm artemcm deleted the UniqueCrossImportOverlayFiles branch March 10, 2025 17:04
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.

2 participants