-
-
Notifications
You must be signed in to change notification settings - Fork 744
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
Improve incremental generator caching #1791
Comments
Thanks Tim, much appreciated, I was going to head down the same rabbit hole and try to make things better, I see that AoT is important to many people too :) |
Hey, added some preliminary benchmarks in #1798. I was planning on adding some tests to verify steps in the incremental generator like I've done for Mediator. I used
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
While working on a more source generated approach, I noticed that Refit does not correctly use incremental generator caching. While a previous PR uses some of the more modern techniques such as
CreateSyntaxProvider
, the lines 829-846 are functionally useless and will never successfully cache anything. This is due to how bothImmutableArray
handles equality and the passing of the reference typeCompilation
(this will always change between re-runs).PreserveAttribute.cs
added and then its namespace queried? Would the compiler change this? I assume it would always beglobal::RefitInternalGenerated.PreserveAttribute
CancellationToken
should be respected to reduce IDE lagI'll start work on a PR for this but I don't promise anything.
Related #1389
The text was updated successfully, but these errors were encountered: