David Mollitor created KAFKA-9404:
-------------------------------------
Summary: 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
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)