adamreeve commented on issue #97: URL: https://github.com/apache/arrow-dotnet/issues/97#issuecomment-3365879762
One related change that might help is making the [ArrowBuffer constructor that takes an IMemoryOwner](https://github.com/apache/arrow-dotnet/blob/78eacbe1c33f6a1d78f37790f5de3803655ecb56/src/Apache.Arrow/ArrowBuffer.cs#L36) public. Then you'd be able to use the native memory allocator to allocate buffers, write to them, then pass those buffers to the `ArrayData` constructor, bypassing the builders. This is quite low-level though, and simpler ways to create arrays with lower overhead would also be great. You an just use the other constructor that takes a `ReadOnlyMemory`, but then disposing the `ArrowBuffer` does nothing and finalizers have to be run to free the native memory, which isn't ideal. -- 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]
