diff options
author | Josh Rosen <joshrosen@databricks.com> | 2016-03-16 22:52:55 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-03-16 22:52:55 -0700 |
commit | de1a84e56e81347cb0d1ec67cc86944ea98bb9a9 (patch) | |
tree | a5a577ebb2049d55c46682161b95594ba2537201 /.github | |
parent | d1c193a2f1a5e2b98f5df1b86d7a7ec0ced13668 (diff) | |
download | spark-de1a84e56e81347cb0d1ec67cc86944ea98bb9a9.tar.gz spark-de1a84e56e81347cb0d1ec67cc86944ea98bb9a9.tar.bz2 spark-de1a84e56e81347cb0d1ec67cc86944ea98bb9a9.zip |
[SPARK-13926] Automatically use Kryo serializer when shuffling RDDs with simple types
Because ClassTags are available when constructing ShuffledRDD we can use them to automatically use Kryo for shuffle serialization when the RDD's types are known to be compatible with Kryo.
This patch introduces `SerializerManager`, a component which picks the "best" serializer for a shuffle given the elements' ClassTags. It will automatically pick a Kryo serializer for ShuffledRDDs whose key, value, and/or combiner types are primitives, arrays of primitives, or strings. In the future we can use this class as a narrow extension point to integrate specialized serializers for other types, such as ByteBuffers.
In a planned followup patch, I will extend the BlockManager APIs so that we're able to use similar automatic serializer selection when caching RDDs (this is a little trickier because the ClassTags need to be threaded through many more places).
Author: Josh Rosen <joshrosen@databricks.com>
Closes #11755 from JoshRosen/automatically-pick-best-serializer.
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions