You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "vincent royer (JIRA)" <ji...@apache.org> on 2017/02/26 07:59:44 UTC

[jira] [Created] (CASSANDRA-13271) Reduce lock contention on instance factories of ListType and SetType

vincent royer created CASSANDRA-13271:
-----------------------------------------

             Summary: Reduce lock contention on instance factories of ListType and SetType
                 Key: CASSANDRA-13271
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13271
             Project: Cassandra
          Issue Type: Improvement
          Components: Core
            Reporter: vincent royer
            Priority: Minor
             Fix For: 3.0.x, 3.11.x


By doing some performance tests, i notice that getInstance() in org.apache.cassandra.db.marshal.ListType and SetType could suffer from lock contention on the singleton factory pattern. Here is a proposal to reduce lock contention by using a ConcurrentMap and the putIfAbsent method.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)