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
In the case where the type is available at macro expansion time, it should be possible to provide a high performance macro that does introspection at macro expansion time and only trivial operations at runtime.
The text was updated successfully, but these errors were encountered:
Ah, right. A generated function is the right answer here. A macro would be at macro-expansion time instead of compile time, but that is less flexible.
To do it as a macro the type would need to be a literal type and then the macro would determine what that literal refers to, but that would be a hacky and bad solution in comparison to a generated function.
LilithHafner
changed the title
Add high performance macro
Increase performance with a generated function
Sep 24, 2024
In the case where the type is available at macro expansion time, it should be possible to provide a high performance macro that does introspection at macro expansion time and only trivial operations at runtime.
The text was updated successfully, but these errors were encountered: