Github user marmbrus commented on the pull request:
https://github.com/apache/spark/pull/8382#issuecomment-136913496
Mixing it in isn't going to change the size of the class itself, and in
nearly all cases aren't we pulling in the outer class already?
```
scala> class A extends Serializable { val x = 1 }
defined class A
scala> org.apache.spark.util.Utils.serialize(new A).length
res3: Int = 140
scala> trait T { def y = 2 }
defined trait T
scala> class B extends T with Serializable { val x = 1 }
defined class B
scala> org.apache.spark.util.Utils.serialize(new B).length
res4: Int = 140
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]