Author Profile

Xiao (Sean) Li

Xiao (Sean) Li

Xiao Li is an Apache Spark™ Committer, master inventor and senior engineer at the Spark Technology Center. His main interests are Spark, data replication, and data integration.

Posts by Xiao (Sean) Li

Xiao (Sean) Li
Xiao (Sean) Li
9 months ago

Deciding about De/Serialization in PySpark Storage Levels

Serialization can save substantial space at the cost of some extra CPU time — and by default, PySpark uses the cPickle serializer. (The following link explains the general internal design of PySpark: PySpark_Internals.) Prior to PySpark 2.0, the stored objects were always serialized regardless of whether you chose a serialized level. That means, the flag “deserialized” had no effect (as documented... Read More