Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ import org.apache.spark.util.BoundedPriorityQueue

/**
* Registers GraphX classes with Kryo for improved performance.
*
* If possible disable Reference tracking in Kryo (not safe in the Spark-Shell).
* Reference tracking can be disabled by following the instructions here:
*
* http://spark.apache.org/docs/latest/configuration.html
*
*/
class GraphKryoRegistrator extends KryoRegistrator {

Expand All @@ -41,8 +47,5 @@ class GraphKryoRegistrator extends KryoRegistrator {
kryo.register(classOf[PartitionStrategy])
kryo.register(classOf[BoundedPriorityQueue[Object]])
kryo.register(classOf[EdgeDirection])

// This avoids a large number of hash table lookups.
kryo.setReferences(false)
}
}