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

dujian0068 commented on KAFKA-17070:
------------------------------------

Hello:

For records that do not require compression, I tried using 
ByteBufferOutputStream instead of DataOutputStream, but the test results showed 
that the performance did not change significantly.

MyTestCode:[^MyProducerTest.java]

ByteBufferOutputStream Test result : [^ByteBufferOutpuStream-Testresult.txt]

DataOutputStream Test result:[^DataOutputStream-TestResult.txt]

Code modification record:[https://github.com/apache/kafka/pull/16595]

 

Can anyone give me some advice?

Thank you

 

 

> perf: consider to use ByteBufferOutputstream to append records
> --------------------------------------------------------------
>
>                 Key: KAFKA-17070
>                 URL: https://issues.apache.org/jira/browse/KAFKA-17070
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Luke Chen
>            Assignee: dujian0068
>            Priority: Major
>         Attachments: ByteBufferOutpuStream-Testresult.txt, 
> DataOutputStream-TestResult.txt, MyProducerTest.java
>
>
> Consider to use ByteBufferOutputstream to append records, instead of a 
> DataOutputStream. We should add JMH test to confirm this indeed improve the 
> performance before merging it.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to