You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of relying on reflection to build things like the lists of types that can be used for each method, a source generator should be implemented that will generate those lists statically at build.
This should be explored because the overhead of reflection is fairly substantial compared to hardcoded lists. Maintaining those hardcoded lists can take a lot of effort and can drift from implementations more easily. The other downside to reflection is that it is not AOT-compatible. This means that native libraries cannot be compiled in any of those cases.
This may necessitate changes even further down the chain, so this item may be a parent item for other changes later.