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 2017/08/05 00:33:00 UTC

[jira] [Updated] (RATIS-101) Use ByteString instead of byte[] in RaftId, ClientId, RaftGroupId and RaftPeerId

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

Tsz Wo Nicholas Sze updated RATIS-101:
--------------------------------------
    Description: 
- We can avoid copying bytes by using ByteString.
- ByteString is immutable.

  was:
- We can avoid copying bytes by using ByteBuffer.
- ByteBuffer can be set to readonly.

        Summary: Use ByteString instead of byte[] in RaftId, ClientId, RaftGroupId and RaftPeerId  (was: Use ByteBuffer instead of byte[] in RaftId)

Using ByteString seems even better.  Revising title and description ...

> Use ByteString instead of byte[] in RaftId, ClientId, RaftGroupId and RaftPeerId
> --------------------------------------------------------------------------------
>
>                 Key: RATIS-101
>                 URL: https://issues.apache.org/jira/browse/RATIS-101
>             Project: Ratis
>          Issue Type: Improvement
>            Reporter: Tsz Wo Nicholas Sze
>            Assignee: Tsz Wo Nicholas Sze
>
> - We can avoid copying bytes by using ByteString.
> - ByteString is immutable.



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