srowen commented on pull request #30392: URL: https://github.com/apache/spark/pull/30392#issuecomment-729039906
I suppose the potential overhead of treeReduce is that it may proceed in several phases, whereas reduce does it in one pass. If the executor-side reduce is unnecessary because there's one element, by the same token, does it take any time? I'd think it just returns the single element. ---------------------------------------------------------------- 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]
