You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "Zili Chen (Jira)" <ji...@apache.org> on 2022/05/20 03:54:00 UTC
[jira] [Closed] (CURATOR-514) Utilize ThreadLocalRandom In QueueSharder
[ https://issues.apache.org/jira/browse/CURATOR-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zili Chen closed CURATOR-514.
-----------------------------
Resolution: Fixed
Resolved in master via f44ff8844f0727e155d7f8e8e6172757acc060cd.
> Utilize ThreadLocalRandom In QueueSharder
> -----------------------------------------
>
> Key: CURATOR-514
> URL: https://issues.apache.org/jira/browse/CURATOR-514
> Project: Apache Curator
> Issue Type: Improvement
> Components: Recipes
> Affects Versions: 4.2.0
> Reporter: David Mollitor
> Priority: Minor
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> bq. When applicable, use of ThreadLocalRandom rather than shared Random objects in concurrent programs will typically encounter much less overhead and contention.
> https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ThreadLocalRandom.html
--
This message was sent by Atlassian Jira
(v8.20.7#820007)