You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "jingxiong zhong (Jira)" <ji...@apache.org> on 2023/02/05 09:26:00 UTC

[jira] [Updated] (SPARK-42336) Use getOrElse() instead of contains() in ResourceAllocator

     [ 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org