Skip to content

[Dependency Scanning] Reduce the amount of copying of collections of module IDs - #83306

Merged
artemcm merged 1 commit into
swiftlang:mainfrom
artemcm:NoMoreCopyAllDependencies
Aug 12, 2025
Merged

artemcm merged 1 commit into
swiftlang:mainfrom
artemcm:NoMoreCopyAllDependencies

Conversation

@artemcm

@artemcm artemcm commented Jul 24, 2025

Copy link
Copy Markdown
Contributor

Previously, frequently-used methods like getAllDependencies and getAllClangDependencies had to aggregate (copy) multiple collections stored in a ModuleDependencyInfo into a new result array to present to the client. These methods have been refactored to instead return an iterable joined view of the constituent collections. Once we can use C++20, we can instead adopt https://en.cppreference.com/w/cpp/ranges/join_view.html.

@artemcm

artemcm commented Jul 24, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci smoke test

@artemcm
artemcm force-pushed the NoMoreCopyAllDependencies branch from 24063b9 to 2d8a66c Compare July 24, 2025 19:47
@artemcm

artemcm commented Jul 24, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci smoke test

@artemcm
artemcm force-pushed the NoMoreCopyAllDependencies branch from 2d8a66c to 9e7816d Compare July 24, 2025 22:01
@artemcm

artemcm commented Jul 24, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci smoke test

@artemcm
artemcm force-pushed the NoMoreCopyAllDependencies branch from 9e7816d to d4d58b9 Compare July 25, 2025 16:44
@artemcm

artemcm commented Jul 25, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci smoke test

@artemcm

artemcm commented Jul 29, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci smoke test windows platform

Comment thread include/swift/AST/ModuleDependencies.h Outdated
Comment thread include/swift/DependencyScan/ModuleDependencyScanner.h Outdated
Comment thread test/CAS/plugin_cas.swift Outdated
@artemcm
artemcm force-pushed the NoMoreCopyAllDependencies branch from d4d58b9 to 39a0735 Compare July 31, 2025 17:46
@artemcm

artemcm commented Jul 31, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci smoke test

@artemcm
artemcm enabled auto-merge July 31, 2025 20:37
@artemcm

artemcm commented Aug 1, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci smoke test

@artemcm

artemcm commented Aug 7, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci smoke test Windows platform

@artemcm
artemcm force-pushed the NoMoreCopyAllDependencies branch from 39a0735 to a380103 Compare August 7, 2025 22:30
@artemcm

artemcm commented Aug 7, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci smoke test

@artemcm
artemcm force-pushed the NoMoreCopyAllDependencies branch from a380103 to 15bd9db Compare August 11, 2025 19:00
@artemcm

artemcm commented Aug 11, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci smoke test

…module IDs

Previously, frequently-used methods like 'getAllDependencies' and 'getAllClangDependencies' had to aggregate (copy) multiple collections stored in a 'ModuleDependencyInfo' into a new result array to present to the client. These methods have been refactored to instead return an iterable joined view of the constituent collections.
@artemcm
artemcm force-pushed the NoMoreCopyAllDependencies branch from 15bd9db to 56a6c14 Compare August 11, 2025 19:19
@artemcm

artemcm commented Aug 11, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci smoke test

@artemcm
artemcm merged commit 9af480d into swiftlang:main Aug 12, 2025
3 checks passed
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