Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-14966] SizeEstimator should ignore classes in the scala.reflec…
…t package In local profiling, I noticed SizeEstimator spending tons of time estimating the size of objects which contain TypeTag or ClassTag fields. The problem with these tags is that they reference global Scala reflection objects, which, in turn, reference many singletons, such as TestHive. This throws off the accuracy of the size estimation and wastes tons of time traversing a huge object graph. As a result, I think that SizeEstimator should ignore any classes in the `scala.reflect` package. Author: Josh Rosen <[email protected]> Closes apache#12741 from JoshRosen/ignore-scala-reflect-in-size-estimator.
- Loading branch information