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

Upgrade source generators to the more efficient incremental generator style #3068

Open
TheCakeMonster opened this issue Aug 25, 2022 · 0 comments

Comments

@TheCakeMonster
Copy link
Contributor

The SerializationPartialsGenerator type was created to automatically implement the IMobileObject interface on POCO types and does so by implementing the ISourceGenerator interface. In .NET 6, Microsoft added a newer generator API that offers better performance on larger code bases - incremental source generators. Incremental source generators can reduce load on the build infrastructure during build and development, reducing the risk that the generator will slow developer activities.

Upgrading from implementing ISourceGenerator to instead implement IIncrementalGenerator could be beneficial for users of CSLA who develop extremely large codebases.

This would affect the SerializationPartialsGenerator class and associated types.

The difference for a single generator is probably quite small, so this is a low priority task. This task would become more relevant if we added more source generators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants