Github user nathanmarz commented on a diff in the pull request:
https://github.com/apache/storm/pull/268#discussion_r18687511
--- Diff: storm-core/src/clj/backtype/storm/messaging/local.clj ---
@@ -45,10 +46,10 @@
(let [send-queue (add-queue! queues-map lock storm-id port)]
(.put send-queue (TaskMessage. taskId payload))
))
- (^void send [this ^Iterator iter]
+ (^void send [this ^ArrayList msgs]
(let [send-queue (add-queue! queues-map lock storm-id port)]
- (while (.hasNext iter)
- (.put send-queue (.next iter)))
+ (fast-list-iter [task msgs]
+ (.put send-queue (TaskMessage. (.task task) (.message task))))
--- End diff --
This needs type hints to avoid reflection.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---