GitHub user JoshRosen opened a pull request:

    https://github.com/apache/spark/pull/12741

    [SPARK-14966] SizeEstimator should ignore classes in the scala.reflect 
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.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/JoshRosen/spark 
ignore-scala-reflect-in-size-estimator

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/12741.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #12741
    
----
commit e51c7e8ffb6e672048c148c1b686f579b631326a
Author: Josh Rosen <[email protected]>
Date:   2016-04-27T20:29:51Z

    Ignore scala.reflect classes in SizeEstimator.

----


---
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]

Reply via email to