-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Add custom comparer to use incremental generator caching for LoggerMessageGenerator and JsonSourceGenerator #74558
Conversation
Tagging subscribers to this area: @dotnet/area-extensions-logging Issue DetailsRelated to issue #74557, this is a proposed solution how to add caching to
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ignoring the Compilation
when comparing the tuples is not correct according to #64579 (comment).
@CyrusNajmabadi @chsienki - are changes still needed here with the latest changes using the new Roslyn Attribute API? |
CC @dotnet/area-system-text-json as there is a change in the |
Hi @eerhardt |
No problem. Check out: |
Thanks for your reply. Looking at the PR you linked, it seems like you moved a lot of the logic within the ´GetSemanticTargetForGeneration´ instead of having this executed after If you think it could help and changes would be accepted, I could give it a try with the above two generators and move the logic executed after Please let me know if help is appreciated :-) I will of course wait and see what is answered to the question regarding if a new Roslyn Attribute API has fixed the issue. |
See #68353 (comment):
cc @sharwell EDIT I missed that this was already mentioned in the comments above. |
Hi @eerhardt After reading through the links you send I understand it as the API It also seems like some are working on updating the generators. I will close the PR and issue then - thanks clarifying I’m looking forward to the API is out 😊 |
Related to issue #74557, this is a proposed solution how to add caching to
LoggerMessageGenerator
andJsonSourceGenerator
.