[ 
https://issues.apache.org/jira/browse/KAFKA-10694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17255334#comment-17255334
 ] 

Jose Armando Garcia Sancio commented on KAFKA-10694:
----------------------------------------------------

> Can we not use SendBuilder?

 

Yes, I think so. This was added in this PR 
[https://github.com/apache/kafka/pull/9563.] I'll provide more details when we 
are closer to implementing this.

> Implement zero copy for FetchSnapshot
> -------------------------------------
>
>                 Key: KAFKA-10694
>                 URL: https://issues.apache.org/jira/browse/KAFKA-10694
>             Project: Kafka
>          Issue Type: Sub-task
>          Components: replication
>            Reporter: Jose Armando Garcia Sancio
>            Priority: Major
>
> Change the _RawSnapshotWriter_ and _RawSnapshotReader_ interfaces to allow 
> sending and receiving _FetchSnapshotResponse_ with minimal memory copies.
> This could be implemented by making the following changes
> {code:java}
> interface RawSnapshotWriter {
>   ...
>   public void append(MemoryRecords records) throws IOException;
> } {code}
> {code:java}
> interface RawSnapshotReader {
>   ...
>   public BaseRecords slice(long position) throws IOException;
> }{code}



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

Reply via email to