Skip to content

AST: Cache underlying clang module during import resolution #71330

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

Conversation

tshortli
Copy link
Contributor

@tshortli tshortli commented Feb 2, 2024

As recommended in feedback on #71302, cache the underlying clang module after loading it in ImportResolver, rather than filtering it out of the overall set of resolved imports. This is more efficient and results in less duplicated code that must identify the underlying clang module.

As recommended in feedback on swiftlang#71302, cache
the underlying clang module after loading it in `ImportResolver`, rather than
filtering it out of the overall set of resolved imports. This is more efficient
and results in less duplicated code that must identify the underlying clang
module.
@tshortli
Copy link
Contributor Author

tshortli commented Feb 2, 2024

@swift-ci please smoke test

@tshortli tshortli changed the title AST: Cache underlying clang module during import resolution. AST: Cache underlying clang module during import resolution Feb 2, 2024
Copy link
Contributor

@beccadax beccadax left a comment

Choose a reason for hiding this comment

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

Love it, thanks!

@tshortli tshortli enabled auto-merge February 2, 2024 01:17
@tshortli tshortli merged commit a6fb421 into swiftlang:main Feb 2, 2024
@tshortli tshortli deleted the import-resolution-underlying-clang-module-cache branch February 29, 2024 18:25
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