Skip to content

source generator support status #1681

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

Open
kasperk81 opened this issue Mar 21, 2022 · 1 comment
Open

source generator support status #1681

kasperk81 opened this issue Mar 21, 2022 · 1 comment

Comments

@kasperk81
Copy link

status of source generator support is unclear.

reflection used in this library makes it unusable in performance sensitive applications. people using il2cpp or nativeaot aren't the biggest fans of reflection either.

so what is the status of real source generator that will completely remove run time reflection usage?

@jonsequitur
Copy link
Contributor

Reflection usage for dynamic invocation and binding has been eliminated in the beta 3 release, enabling trimming and NativeAOT compilation. The performance is getting very good, with an emphasis on startup and JIT time.

Given these changes, source generator support isn't so much a means to performance improvement as it is a way to provide a more ergonomic API layer, e.g. simplifying code patterns that currently require passing child options and arguments to both a parent command and to the SetHandler method, or generating boilerplate binding code.

Are there specific code patterns where you're seeing a performance issue? We'd be happy to take a look and see where additional improvements can be made.

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

No branches or pull requests

2 participants