[SPARK-21491][GRAPHX] Enhance GraphX performance: breakOut instead of .toMap
## What changes were proposed in this pull request? `Traversable.toMap` changed to 'collections.breakOut', that eliminates intermediate tuple collection creation, see [Stack Overflow article](https://stackoverflow.com/questions/1715681/scala-2-8-breakout). ## How was this patch tested? Unit tests run. No performance tests performed yet. Please review http://spark.apache.org/contributing.html before opening a pull request. Author: iurii.ant <sereneant@gmail.com> Closes #18693 from SereneAnt/performance_toMap-breakOut.
Showing
- graphx/src/main/scala/org/apache/spark/graphx/lib/LabelPropagation.scala 1 addition, 1 deletion.../scala/org/apache/spark/graphx/lib/LabelPropagation.scala
- graphx/src/main/scala/org/apache/spark/graphx/lib/ShortestPaths.scala 3 additions, 2 deletions...ain/scala/org/apache/spark/graphx/lib/ShortestPaths.scala
Please register or sign in to comment