gatorsmile opened a new pull request #25860: [SPARK-26003] [Backport-2.4] 
Improve SQLAppStatusListener.aggregateMetrics performance
URL: https://github.com/apache/spark/pull/25860
 
 
   
   This PR is to cherry-pick https://github.com/apache/spark/pull/23002 to 
Spark 2.4
   
   --- 
   
   ## What changes were proposed in this pull request?
   
   In `SQLAppStatusListener.aggregateMetrics`, we use the `metricIds` only to 
filter the relevant metrics. And this is a Seq which is also sorted. When there 
are many metrics involved, this can be pretty inefficient. The PR proposes to 
use a Set for it.
   
   ## How was this patch tested?
   
   NA
   
   Closes #23002 from mgaido91/SPARK-26003.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to