Mond icon indicating copy to clipboard operation
Mond copied to clipboard

Implement binding via source generators and remove the current method

Open Rohansi opened this issue 4 years ago • 1 comments

Binding works nicely as-is but kind of sucks for performance now. Both of the current methods (reflection and reflection emit) cannot take advantage of performance oriented features in the latest C#.

Only issue is we lose the ability to bind things dynamically but that's a tiny use case. I'd prefer only source generators to clean up code.

Rohansi avatar Feb 08 '21 19:02 Rohansi

Added benefit to this is we can revisit the interface for binding C# functions to Mond to improve performance in that area. Preferably making it not require copying or allocating things.

Rohansi avatar Feb 23 '23 23:02 Rohansi