spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <>
Subject [jira] [Assigned] (SPARK-15748) Replace inefficient foldLeft() call in PartitionStatistics
Date Fri, 03 Jun 2016 05:49:59 GMT


Apache Spark reassigned SPARK-15748:

    Assignee: Apache Spark  (was: Josh Rosen)

> Replace inefficient foldLeft() call in PartitionStatistics
> ----------------------------------------------------------
>                 Key: SPARK-15748
>                 URL:
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>            Reporter: Josh Rosen
>            Assignee: Apache Spark
> 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

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message