SuperManJin opened a new issue, #47480:
URL: https://github.com/apache/arrow/issues/47480
### Describe the usage question you have. Please include as many useful
details as possible.
I'm using Arrow Flight and discovered an extra copy action while testing
performance impact.
` ReadableBuffer readableBuffer = fastPath ? getReadableBuffer(stream) :
null;
if (readableBuffer != null) {
readableBuffer.readBytes(buf.nioBuffer(0, size));
} `
<img width="2926" height="760" alt="Image"
src="https://github.com/user-attachments/assets/e509e4e9-2e89-41be-abb7-be800603f0fa"
/>
The flame graph shows that after enabling zero_copy, ArrowBuf copying from
GetReadableBuffer causes slowness.
Why does this copy occur?
Or is it because arrowbuf needs to manage its own memory, so the ownership
must be transferred from netty?
### Component(s)
FlightRPC
--
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]