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 22:27:00 UTC
[jira] [Updated] (RATIS-589) Eliminate buffer copying in
SegmentedRaftLogOutputStream
[ https://issues.apache.org/jira/browse/RATIS-589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz Wo Nicholas Sze updated RATIS-589:
--------------------------------------
Attachment: r589_20190614.patch
> 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
> Priority: Major
> Attachments: r589_20190614.patch
>
>
> 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)