zhengruifeng commented on pull request #30468: URL: https://github.com/apache/spark/pull/30468#issuecomment-732096836
Finally, I found that `Guava.Ordering` seems much more efficient than `BoundedPriorityQueue`. (see [Selecting top k items from a list efficiently in Java / Groovy](https://www.michaelpollmeier.com/selecting-top-k-items-from-a-list-efficiently-in-java-groovy))   ---------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
