You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yuming Wang (Jira)" <ji...@apache.org> on 2025/01/01 01:28:00 UTC

[jira] [Resolved] (SPARK-49491) Replace AnyRefMap with HashMap

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

Yuming Wang resolved SPARK-49491.
---------------------------------
    Fix Version/s: 4.0.0
       Resolution: Fixed

Issue resolved by pull request 48128
[https://github.com/apache/spark/pull/48128]

> Replace AnyRefMap with HashMap
> ------------------------------
>
>                 Key: SPARK-49491
>                 URL: https://issues.apache.org/jira/browse/SPARK-49491
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 4.0.0
>            Reporter: Yuming Wang
>            Assignee: Yifeng Hua
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>
> scala 2.13.8:
> {noformat}
> OpenJDK 64-Bit Server VM 1.8.0_382-b05 on Mac OS X 14.5
> Apple M2 Max
> Benchmark Map:                            Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
> ------------------------------------------------------------------------------------------------------------------------
> HashMap                                            1121           1126           3          0.0      280264.2       1.0X
> AnyRefMap                                          1590           1609          29          0.0      397386.4       0.7X
> {noformat}
> scala 2.12.18:
> {noformat}
> OpenJDK 64-Bit Server VM 1.8.0_382-b05 on Mac OS X 14.5
> Apple M2 Max
> Benchmark Map:                            Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
> ------------------------------------------------------------------------------------------------------------------------
> HashMap                                            1679           1689          11          0.0      419759.2       1.0X
> AnyRefMap                                          1585           1592           8          0.0      396357.1       1.1X
> {noformat}
> More details:
> https://github.com/scala/bug/issues/13029#issuecomment-2325489902



--
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