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