Skip to content

[lldb] Improve performance of TypeSystemSwiftTypeRef via lazy canonic… #9808

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

adrian-prantl
Copy link

…alization

Most of the queries in TypeSystemSwiftTypeRef request a full canonicalized type, which involves resolving all nested type aliases (which kicks off expensive DWARF lookups), but they only look at the outermost node. This patch introduces DemangleCanonicalOutermostType() to avoid this redundant work.

…alization

Most of the queries in TypeSystemSwiftTypeRef request a full
canonicalized type, which involves resolving all nested type aliases
(which kicks off expensive DWARF lookups), but they only look at the
outermost node. This patch introduces DemangleCanonicalOutermostType()
to avoid this redundant work.
@adrian-prantl adrian-prantl requested a review from a team as a code owner January 8, 2025 00:01
@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl
Copy link
Author

@swift-ci test macOS

@adrian-prantl adrian-prantl requested a review from fredriss January 8, 2025 16:54
@adrian-prantl adrian-prantl merged commit ad53c6a into swiftlang:swift/release/6.1 Jan 8, 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.

3 participants