I put together a simple POC that embeds Python in Go. It allocates a
pyarrow buffer in Python and does a zero-copy handoff of the data to
Go. There's some benchmarks with it.

https://github.com/nickpoorman/go-python-arrow-zero-copy-poc

Along the lines of what Sebastien was suggesting, handling the arrow
arrays via a shared memory allocator might the be another approach
instead of passing around pointers to buffers.

-Nick

Reply via email to