You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "David Mollitor (JIRA)" <ji...@apache.org> on 2019/03/22 20:00:01 UTC

[jira] [Created] (CURATOR-514) Utilize ThreadLocalRandom In QueueSharder

David Mollitor created CURATOR-514:
--------------------------------------

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


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
(v7.6.3#76005)