[ 
https://issues.apache.org/jira/browse/SPARK-4386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Armbrust resolved SPARK-4386.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.2.0

Issue resolved by pull request 3254
[https://github.com/apache/spark/pull/3254]

> Parquet file write performance improvement
> ------------------------------------------
>
>                 Key: SPARK-4386
>                 URL: https://issues.apache.org/jira/browse/SPARK-4386
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 1.2.0
>            Reporter: Jim Carroll
>             Fix For: 1.2.0
>
>
> If you profile the writing of a Parquet file, the single worst time consuming 
> call inside of org.apache.spark.sql.parquet.MutableRowWriteSupport.write is 
> actually in the scala.collection.AbstractSequence.size call. This is because 
> the size call actually ends up COUNTING the elements in a 
> scala.collection.LinearSeqOptimized ("optimized?").
> This doesn't need to be done. "size" is called repeatedly where needed rather 
> than called once at the top of the method and stored in a 'val'. I have a PR 
> for this.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to