CurtHagenlocher commented on PR #73:
URL: https://github.com/apache/arrow-dotnet/pull/73#issuecomment-3300600484

   > Unfortunately, the stream.WriteAsync doesn't have an overload with 
`ReadOnlySpan<byte>` so it will disallow us to use stack alloc.
   
   Right; of course, because the allocation has to live until the async call 
finishes.
   
   > I will try to explore solution without buffer, by using 
https://learn.microsoft.com/en-us/dotnet/api/system.buffers.binary.binaryprimitives.reverseendianness?view=net-9.0#system-buffers-binary-binaryprimitives-reverseendianness(system-int32)
   
   I suspect the buffer is unavoidable in the async case, but let us know what 
you decide.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to