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:25:00 UTC
[jira] [Updated] (SPARK-42336) Use OpenHashMap instead of HashMap
[ https://issues.apache.org/jira/browse/SPARK-42336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
jingxiong zhong updated SPARK-42336:
------------------------------------
Description: In ResourceAllocator, we can use `.getOrElse(address, throw new SparkException(...))` instead of one `contains` which can gain better performance. (was: In ResourceAllocator, we can use OpenHashMap instead of HashMap, which can gain better performance.)
> Use OpenHashMap instead of HashMap
> ----------------------------------
>
> 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