You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Tsz Wo Nicholas Sze (JIRA)" <ji...@apache.org> on 2019/06/14 00:58:00 UTC

[jira] [Created] (RATIS-589) Eliminate buffer copying in SegmentedRaftLogOutputStream

Tsz Wo Nicholas Sze created RATIS-589:
-----------------------------------------

             Summary: Eliminate buffer copying in SegmentedRaftLogOutputStream
                 Key: RATIS-589
                 URL: https://issues.apache.org/jira/browse/RATIS-589
             Project: Ratis
          Issue Type: Improvement
          Components: server
            Reporter: Tsz Wo Nicholas Sze
            Assignee: Tsz Wo Nicholas Sze


In SegmentedRaftLogOutputStream.write(LogEntryProto entry), the entry is first converted to a byte array and then write to BufferedWriteChannel.  In BufferedWriteChannel, it copies the byte array to a ByteBuffer.  The copying should be eliminated.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)