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-1299) Improve MsgStreamer.write(ByteBuffer) by not copying part of a byte buffer
Date Thu, 15 Jun 2017 20:39:00 GMT

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

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

> Improve MsgStreamer.write(ByteBuffer) by not copying part of a byte buffer
> --------------------------------------------------------------------------
>
>                 Key: GEODE-1299
>                 URL: https://issues.apache.org/jira/browse/GEODE-1299
>             Project: Geode
>          Issue Type: Improvement
>          Components: offheap
>            Reporter: Darrel Schneider
>              Labels: offheap
>
> In MsgStreamer.write(ByteBuffer) the while loop can end up copying part of the ByteBuffer
being written to "this.buffer" and then the rest of it to "overflowBuf".
> It is probably better (for sure if the overflowBuf will have doNotCopy=true) to just
write the entire ByteBuffer to the overflowBuf instead of splitting it up.



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

Mime
View raw message