Shashikant Banerjee created RATIS-688:
-----------------------------------------

             Summary: Avoid buffer copies while submitting client requests in 
Ratis
                 Key: RATIS-688
                 URL: https://issues.apache.org/jira/browse/RATIS-688
             Project: Ratis
          Issue Type: Bug
          Components: client, server
            Reporter: Shashikant Banerjee
             Fix For: 0.4.0


Currently, while sending write requests to Ratis from ozone, a protobuf object 
containing data encoded  and then resultant protobuf is again converted to a 
byteString which internally does a copy of the buffer embedded inside the 
protobuf again so that it can be submitted over to Ratis client. Again, while 
sending the appendRequest as well while building up the appendRequestProto, it 
might be again copying the data. The idea here is to provide client so pass the 
raw data(stateMachinne data) separately to ratis client without copying 
overhead. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to