Chia-Ping Tsai created KAFKA-21510:
--------------------------------------
Summary: Replace DefaultRecordBatch#iterator with
DefaultRecordBatch#streamingIterator
Key: KAFKA-21510
URL: https://issues.apache.org/jira/browse/KAFKA-21510
Project: Kafka
Issue Type: Improvement
Reporter: Chia-Ping Tsai
Assignee: Chia-Ping Tsai
{{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)