Github user jkbradley commented on the pull request: https://github.com/apache/spark/pull/3022#issuecomment-67087866 I just found out (hearsay) that Accumulator may incur a big performance penalty relative to methods like RDD.aggregate(). There have also been some bugs found with Accumulator in the past. So it might be worth switching from using Accumulators to using aggregate() and other methods. The aggregations are pretty simple, so it shouldn't make the code any longer.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org