gabriellefu opened a new pull request, #24380:
URL: https://github.com/apache/kafka/pull/24380

    `StickyTaskAssignor` sorts the tasks four times per assignment and keeps    
                                                      
     the processes in a priority queue when it places standby tasks. These      
                                                       
     comparators were built with 
`Comparator.comparing(...).thenComparing(...)`,                                 
                      
     which is slow on this path. This patch writes them as single lambdas, as   
                                                       
     `PROCESS_BY_LOAD` already is. The order of every sort and of the queue is  
                                                       
     unchanged, so the assignments are the same.                                
                                                       
                                                                                
                                                       
     In `StreamsAssignorBenchmark`, the sticky assignor is 14-22% faster for    
                                                       
     full assignments and 6-14% faster for incremental ones.                    
                                                       
                                                               


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to