[
https://issues.apache.org/jira/browse/KAFKA-9404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ismael Juma resolved KAFKA-9404.
--------------------------------
Fix Version/s: 2.6.0
Resolution: Fixed
> Use ArrayList instead of LinkedList in Sensor Class
> ---------------------------------------------------
>
> Key: KAFKA-9404
> URL: https://issues.apache.org/jira/browse/KAFKA-9404
> Project: Kafka
> Issue Type: Improvement
> Reporter: David Mollitor
> Priority: Trivial
> Fix For: 2.6.0
>
>
> Since this collection is going to be bulk-built once and not modified, better
> to use an {{ArrayList}} since its memory requirements are smaller and it is
> much faster here... just instantiate the internal array once and fill it...
> as opposed to {{LinkedList}} that must build the nodes for each item
> inserted. {{ArrayList}} is also faster for iteration.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)