[ 
https://issues.apache.org/jira/browse/KAFKA-9404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17061731#comment-17061731
 ] 

ASF GitHub Bot commented on KAFKA-9404:
---------------------------------------

ijuma commented on pull request #7936: KAFKA-9404: Use ArrayList instead of 
LinkedList in Sensor Class
URL: https://github.com/apache/kafka/pull/7936
 
 
   
 
----------------------------------------------------------------
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


> 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
>
> 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)

Reply via email to