[
https://issues.apache.org/jira/browse/KAFKA-21510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matthias J. Sax updated KAFKA-21510:
------------------------------------
Component/s: clients
producer
> Replace DefaultRecordBatch#iterator with DefaultRecordBatch#streamingIterator
> -----------------------------------------------------------------------------
>
> Key: KAFKA-21510
> URL: https://issues.apache.org/jira/browse/KAFKA-21510
> Project: Kafka
> Issue Type: Improvement
> Components: clients, producer
> Reporter: Chia-Ping Tsai
> Assignee: Cheng Yi Chang
> Priority: Major
>
> {{DefaultRecordBatch#iterator}} loads all records of a compressed batch into
> a list, and that is wasteful. We could use {{streamingIterator}} to replace
> it to avoid the extra allocation. The callers need to close the
> {{{}streamingIterator{}}}.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)