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/03/17 21:02:33 UTC

[jira] [Commented] (SPARK-13981) Improve Filter generated code to defer variable evaluation within operator

    [ https://issues.apache.org/jira/browse/SPARK-13981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15200263#comment-15200263 ] 

Apache Spark commented on SPARK-13981:
--------------------------------------

User 'nongli' has created a pull request for this issue:
https://github.com/apache/spark/pull/11792

> Improve Filter generated code to defer variable evaluation within operator
> --------------------------------------------------------------------------
>
>                 Key: SPARK-13981
>                 URL: https://issues.apache.org/jira/browse/SPARK-13981
>             Project: Spark
>          Issue Type: Improvement
>            Reporter: Nong Li
>            Priority: Minor
>
> We can improve the generated filter code by deferring evaluating variables until just before they are needed.
> For example. x > 1 and y > b
> we can do
> {code}
> x = ...
> if (x <= 1) continue
> y = ...
> {code}
> instead of currently where we do
> {code}
> x = ...
> y = ...
> if (x <= 1) continue
> ...
> {code}
> This is helpful if evaluating y has any cost.



--
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