chia7712 commented on a change in pull request #9401: URL: https://github.com/apache/kafka/pull/9401#discussion_r522005653
########## File path: clients/src/main/java/org/apache/kafka/common/requests/ProduceResponse.java ########## @@ -204,118 +75,79 @@ public ProduceResponse(Map<TopicPartition, PartitionResponse> responses) { * @param throttleTimeMs Time in milliseconds the response was throttled */ public ProduceResponse(Map<TopicPartition, PartitionResponse> responses, int throttleTimeMs) { - this.responses = responses; - this.throttleTimeMs = throttleTimeMs; + this(new ProduceResponseData() + .setResponses(responses.entrySet() Review comment: > It may be worth trying different implementation to compare their performances. As we all care for performance, I'm ok to say goodbye to stream api :) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org