Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
Moderate
Description
I just noticed that our NIO implementation of scatter / gather calls (e.g. o.a.h.nio.internal.SocketChannelImpl#write(ByteBuffer[],int,int)) are actually copying the data into a single Java heap buffer before calling the OS! and FileChannelImpl copies into a single direct byte buffer.
These need to be reimplemented in terms of the OS scatter/gather capabilities to avoid copying.
Attachments
Attachments
Issue Links
- incorporates
-
HARMONY-6328 [classlib][nio] optimize SocketChannel.write(ByteBuffer[], int, int) by writev
- Closed