[
https://issues.apache.org/jira/browse/RATIS-725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16956114#comment-16956114
]
Tsz-wo Sze commented on RATIS-725:
----------------------------------
Do you mean the code below?
{code}
//RaftServerImpl.appendEntriesAsync(AppendEntriesRequestProto r)
final LogEntryProto[] entries = r.getEntriesList()
.toArray(new LogEntryProto[r.getEntriesCount()]);
{code}
The line above is just copying object references but not object bytes.
> Avoid LogEntry copy in
> RaftServerImpl#appendEntriesAsync(AppendEntriesRequestProto r)
> -------------------------------------------------------------------------------------
>
> Key: RATIS-725
> URL: https://issues.apache.org/jira/browse/RATIS-725
> Project: Ratis
> Issue Type: Bug
> Reporter: Lokesh Jain
> Assignee: Lokesh Jain
> Priority: Major
>
> RaftServerImpl#appendEntriesAsync(AppendEntriesRequestProto r) currently
> converts the LogEntryProto list to an array. This leads to copy of data in
> case of ozone.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)