[jira] [Assigned] (SPARK-28127) Micro optimization on TreeNode's mapChildren method

2019-06-20 Thread Apache Spark (JIRA)


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

Apache Spark reassigned SPARK-28127:


Assignee: (was: Apache Spark)

> Micro optimization on TreeNode's mapChildren method
> ---
>
> Key: SPARK-28127
> URL: https://issues.apache.org/jira/browse/SPARK-28127
> Project: Spark
>  Issue Type: Improvement
>  Components: SQL
>Affects Versions: 3.0.0
>Reporter: Yesheng Ma
>Priority: Major
>
> The {{mapChildren}} method in the {{TreeNode}} class is commonly used. In 
> this method, there's a if statement checking non-empty children. However, 
> there's a cached lazy val {{containsChild}}, which avoids unnecessary 
> computation since this {{containsChild}} is used in other methods anyway.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Assigned] (SPARK-28127) Micro optimization on TreeNode's mapChildren method

2019-06-20 Thread Apache Spark (JIRA)


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

Apache Spark reassigned SPARK-28127:


Assignee: Apache Spark

> Micro optimization on TreeNode's mapChildren method
> ---
>
> Key: SPARK-28127
> URL: https://issues.apache.org/jira/browse/SPARK-28127
> Project: Spark
>  Issue Type: Improvement
>  Components: SQL
>Affects Versions: 3.0.0
>Reporter: Yesheng Ma
>Assignee: Apache Spark
>Priority: Major
>
> The {{mapChildren}} method in the {{TreeNode}} class is commonly used. In 
> this method, there's a if statement checking non-empty children. However, 
> there's a cached lazy val {{containsChild}}, which avoids unnecessary 
> computation since this {{containsChild}} is used in other methods anyway.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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