You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@storm.apache.org by "Arun Mahadevan (JIRA)" <ji...@apache.org> on 2018/09/12 22:36:00 UTC
[jira] [Created] (STORM-3222) Fix KafkaSpout internals to use
LinkedList instead of ArrayList
Arun Mahadevan created STORM-3222:
-------------------------------------
Summary: Fix KafkaSpout internals to use LinkedList instead of ArrayList
Key: STORM-3222
URL: https://issues.apache.org/jira/browse/STORM-3222
Project: Apache Storm
Issue Type: Improvement
Reporter: Arun Mahadevan
Assignee: Arun Mahadevan
KafkaSpout internally maintains a waitingToEmit list per topic partition and keeps removing the first item to emit during each nextTuple. The implementation uses an ArrayList which results in un-necessary traversal and copy for each tuple.
Also I am not sure why the nextTuple only emits a single tuple wheres ideally it should emit whatever it can emit in a single nextTuple call which is more efficient. However the logic appears too complicated to refactor.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)