I know that for ADTs (sealed traits) there are some ongoing efforts to overcome the performance degradation caused by the kryo fallback (see https://github.com/apache/flink/