kwai / blaze

Blazing-fast query execution engine speaks Apache Spark language and has Arrow-DataFusion at its core.
Apache License 2.0
1.3k stars 121 forks source link

[BLAZE-287][FOLLOWUP] Use JavaUtils#newConcurrentHashMap to speed up ConcurrentHashMap#computeIfAbsent #615

Closed SteNicholas closed 1 month ago

SteNicholas commented 1 month ago

Which issue does this PR close?

Closes #287.

Rationale for this change

Celeborn supports JDK8, which could meet the bug mentioned in JDK-8161372. Therefore, it's better to use JavaUtils#newConcurrentHashMap to speed up ConcurrentHashMap#computeIfAbsent.

Cherry pick https://github.com/apache/celeborn/pull/2796.

What changes are included in this PR?

Use JavaUtils#newConcurrentHashMap to speed up ConcurrentHashMap#computeIfAbsent.

Are there any user-facing changes?

No.