by rdedev · 5y ago · 0 comments
It used to be hard to do such transfers between rust and python using arrow but from v3 or v4, arrow implementation in rust started supporting the c data interface. Creating the array in rust and sending it to python might involve leaking a boxed object though
Check this out if you want to see how https://github.com/jhoekx/python-rust-arrow-interop-example/...
https://docs.rs/arrow/6.2.0/arrow/array/type.LargeStringArra...
As for performance, YMMV but I think it could be faster since storing a list of strings as a numpy array would involve padding. Arrow arrays can get away without padding