Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-1299

Improve MsgStreamer.write(ByteBuffer) by not copying part of a byte buffer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • offheap

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dschneider Darrel Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: