[ https://issues.apache.org/jira/browse/KAFKA-289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Gustafson updated KAFKA-289: ---------------------------------- Fix Version/s: (was: 0.10.1.0) > reuse topicdata when sending producerrequest > -------------------------------------------- > > Key: KAFKA-289 > URL: https://issues.apache.org/jira/browse/KAFKA-289 > Project: Kafka > Issue Type: Improvement > Affects Versions: 0.8.0 > Reporter: Joe Stein > Labels: optimization, replication, wireprotocol > > The way that SyncProducer sends a ProducerRequest over socket is to first > serialize the whole request in a bytebuffer and then sends the bytebuffer > through socket. An alternative is to send the request like FetchReponse, > using a ProduceRequestSend that reuses TopicDataSend. This avoids code > duplication and is more efficient since it sends data in > ByteBufferMessagesSet directly to socket and avoids extra copying from > messageset to bytebuffer. -- This message was sent by Atlassian JIRA (v6.3.4#6332)