Can the Enum.x methods be code generated instead of using reflection? #9716
Unanswered
Shadowblitz16
asked this question in
Q&A
Replies: 1 comment 1 reply
-
This is not a language question, it is a runtime one. You can raise over at dotnet/runtime. Thanks :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I saw there was a library that introduced fast versions of the Enum.x methods using code generation which sped it up around 10x.
Can we get that implemented as part of .net?
Infact why not just reimplemented reflection completely using code generators?
Then it would work with aot.
The compiler could check if something is using members from typeof or GetType and only generate it then, that way we don't get a bloated executable.
Beta Was this translation helpful? Give feedback.
All reactions