thisisnic commented on issue #48908: URL: https://github.com/apache/arrow/issues/48908#issuecomment-3781384144
@nealrichardson - pinging you as you implemented `write_as_raw()` originally. I looked into this with 🤖 but it's a bit over my head. I'm not sure whether this is the right answer - what do you think? Or is this one for the mirai folks? 🤖 answer below: ------ The slowness is from `as.raw()` which copies the entire buffer into an R raw vector. The actual IPC serialization is fast (120ms in the profiling above). mirai's `serial_config` API requires the serialization function to return a raw vector, which forces this copy, but also defeats Arrow's zero-copy design. -- 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]
