Skip to content

[IDE] Use getExpandedAttrs instead of getSemanticAttrs to get custom attributes of a declaration #81981

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
Jun 5, 2025

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jun 4, 2025

getSemanticAttrs runs a couple queries that we don’t actually need to run to get all the custom attributes, such as getting the actor isolation of the declaration. Running these things can amount to 5%-7% of the index-while-building overhead. Just running getExpandedAttrs should be sufficient here.

…tom attributes of a declaration

`getSemanticAttrs` runs a couple queries that we don’t actually need to run to get all the custom attributes, such as getting the actor isolation of the declaration. Running these things can amount to 5%-7% of the index-while-building overhead. Just running `getExpandedAttrs` should be sufficient here.
@ahoppen
Copy link
Member Author

ahoppen commented Jun 4, 2025

@swift-ci Please smoke test

@ahoppen ahoppen merged commit 062aaaa into swiftlang:main Jun 5, 2025
3 checks passed
@ahoppen ahoppen deleted the getexpandedattrs branch June 5, 2025 12:32
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