Skip to content
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

Switch to ForAttributeWithMetadataName #41

Merged
merged 3 commits into from
Dec 17, 2022

Conversation

andrewlock
Copy link
Owner

.NET 7 introduced an optimised api for source generation, ForAttributeWithMetadataName, which takes care of finding all types decorated with a given attribute, skipping any symbols where it's not possible, greatly reducing the perf impact.

This PR also introduces EquatableArray as a wrapper for a native array to ensure we correctly compare identical types, and avoid unnccessary output

@andrewlock andrewlock force-pushed the ForAttributeWithMetadataName branch from 9b3270b to ad4ec9e Compare December 17, 2022 13:00
@andrewlock andrewlock force-pushed the ForAttributeWithMetadataName branch 3 times, most recently from d0404f9 to 26895c4 Compare December 17, 2022 17:14
@andrewlock andrewlock force-pushed the ForAttributeWithMetadataName branch from 26895c4 to 456cc34 Compare December 17, 2022 17:50
@andrewlock andrewlock merged commit 8f30633 into main Dec 17, 2022
@andrewlock andrewlock deleted the ForAttributeWithMetadataName branch December 17, 2022 21:36
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.

1 participant