Darrel Schneider created GEODE-1299:
---------------------------------------

             Summary: 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


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.3.4#6332)

Reply via email to