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
Generally, we only pin for cases where we directly pass down the value. That’s why the Pin stage only accepts FixedStatementSyntaxes
I’d honestly recommend keeping the heap allocation or at most adding a stackalloc optimization with the native marshalling APIs
If that’s not high enough perf, then you’d have to file an issue or fork the generator
@jkoritzinsky Thanks. The only feedback I think I'd offer is whatever is pinned is required to be used as an input somewhere. The example we were discussing had the pinning as an implicit side-effect as opposed to being used in a subsequent call – like the above example.
By @jkoritzinsky in private discord messages.
i'm thinking about implementing IMarshallingGenerator that will output:
So it isn't possible yet?
The text was updated successfully, but these errors were encountered: