Github user HeartSaVioR commented on the issue:

    https://github.com/apache/storm/pull/2379
  
    @kevpeek 
    You can refer another implementation to see how we optimize it.
    
    
https://github.com/apache/storm/blob/master/storm-client/src/jvm/org/apache/storm/grouping/LoadAwareShuffleGrouping.java
    
    For starting point you can see how we preallocate possible return values 
for `chooseTasks` and return it. That's what @revans2 pointed out.


---

Reply via email to