spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dongjoon Hyun (Jira)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-28113) Lazy val performance pitfall on Spark LogicalPlan's output method
Date Mon, 16 Mar 2020 22:52:06 GMT

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

Dongjoon Hyun updated SPARK-28113:
----------------------------------
    Affects Version/s:     (was: 3.0.0)
                       3.1.0

> Lazy val performance pitfall on Spark LogicalPlan's output method
> -----------------------------------------------------------------
>
>                 Key: SPARK-28113
>                 URL: https://issues.apache.org/jira/browse/SPARK-28113
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.1.0
>            Reporter: Yesheng Ma
>            Priority: Major
>
> The original {{output}} implementation in a few QueryPlan sub-classes are methods, which
means unnecessary re-computation can happen at times. This PR resolves this problem by making
these method lazy vals.
> We benchmarked this optimization on TPC-DS. In the benchmark, we warmed up the queries
5 iterations and then took the average of 5 runs. Results showed that this micro-optimization
can improve the end-to-end planning time by 9.3%.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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


Mime
View raw message