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

Sean Owen resolved SPARK-2799.
------------------------------

    Resolution: Won't Fix

Too much risk of merge conflicts later -- not going to do this in a big-bang 
change.

> Simplify some Scala operations for clarity, performance
> -------------------------------------------------------
>
>                 Key: SPARK-2799
>                 URL: https://issues.apache.org/jira/browse/SPARK-2799
>             Project: Spark
>          Issue Type: Improvement
>          Components: Examples, GraphX, Spark Core, Streaming
>    Affects Versions: 1.0.1
>            Reporter: Sean Owen
>            Priority: Minor
>
> For fun, here's a last minor suggestion for consideration before the 1.1 
> window closes.
> There are a number of instances where Scala operations can be simplified, for 
> clarity or even performance.
> For example getOrElse(null) can be orNull. filter(...).size can be faster as 
> count(...). An expression like "!...someLongChain...isEmpty" can be "... 
> .nonEmpty". And so on.
> These are from code inspections. The PR will show the changes broken down by 
> type in separate commits. They should be quite safe.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to