C# library is allocation heavy on the Send() for message arrays, any chance for improvement?

Hello @nicholasdgoodman ,
In C# allocations are cheap, so my problem is payback on GC which wouldn’t normally be needed if allocations didn’t happen in the first place. I found a good place to induce GC manually, but I’m not happy with the result to be honest as time app spends in pauses is much longer in total time but pauses themselves are now of predictable lengths at least. This isn’t really a workaround I would like long term.
Profiler also shows some additional allocations of temporary arrays like IntPtr and Int64 during sends (array version, maybe single too) which can probably be avoided, but the ones I mentioned are multiple times more frequent and can easily be worked around with backward compatible changes to library code.
I’m a long time user of Solace product, must admit mostly in C++, but C# nowadays is becoming high performance language with all the memory management improvements of late. So I’m happy to sign an NDA just for a chance to contribute to C# client API or at least assist you in any ways without having access to source code.