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

jingxiong zhong updated SPARK-42336:
------------------------------------
    Summary: Use getOrElse() instead of contains() in  ResourceAllocator  (was: 
Use getOrElse() instead of contains() in  )

> Use getOrElse() instead of contains() in  ResourceAllocator
> -----------------------------------------------------------
>
>                 Key: SPARK-42336
>                 URL: https://issues.apache.org/jira/browse/SPARK-42336
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 3.4.0
>            Reporter: jingxiong zhong
>            Priority: Minor
>
> In ResourceAllocator, we can use `.getOrElse(address, throw new 
> SparkException(...))` instead of one `contains` which can gain better 
> performance.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to