You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/06/03 05:49:59 UTC

[jira] [Assigned] (SPARK-15748) Replace inefficient foldLeft() call in PartitionStatistics

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

Apache Spark reassigned SPARK-15748:
------------------------------------

    Assignee: Josh Rosen  (was: Apache Spark)

> Replace inefficient foldLeft() call in PartitionStatistics
> ----------------------------------------------------------
>
>                 Key: SPARK-15748
>                 URL: https://issues.apache.org/jira/browse/SPARK-15748
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>            Reporter: Josh Rosen
>            Assignee: Josh Rosen
>
> PartitionStatistics uses foldLeft and list concatenation to flatten an iterator of lists, but this is extremely inefficient compared to simply doing flatMap/flatten because it performs many unnecessary object allocations. Simply replacing this foldLeft by a flatMap results in fair performance gains when constructing PartitionStatistics instances for tables with many columns.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org