geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fred Krone (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GEODE-1301) HeapDataOutputStream.sendTo(SocketChannel, ByteBuffer) could be optimized
Date Thu, 15 Jun 2017 20:39:00 GMT

     [ https://issues.apache.org/jira/browse/GEODE-1301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Fred Krone updated GEODE-1301:
------------------------------
    Labels: offheap  (was: )

> HeapDataOutputStream.sendTo(SocketChannel, ByteBuffer) could be optimized
> -------------------------------------------------------------------------
>
>                 Key: GEODE-1301
>                 URL: https://issues.apache.org/jira/browse/GEODE-1301
>             Project: Geode
>          Issue Type: Improvement
>          Components: offheap
>            Reporter: Darrel Schneider
>              Labels: offheap
>
> Currently HeapDataOutputStream.sendTo(SocketChannel, ByteBuffer) will call Channel.write
for each direct ByteBuffer in the HeapDataOutputStream (which can be multiple if doNotCopy=true).
And it will call combine consecutive heap ByteBuffers into a write call.
> It would be much better if it called Channel.write once with an array of ByteBuffers
resulting in one system call the way HeapDataOutputStream.sendTo(SocketChannel) does.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message