Details
-
Improvement
-
Status: Resolved
-
Low
-
Resolution: Fixed
Description
By doing some performance tests, i noticed that getInstance() in org.apache.cassandra.db.marshal.ListType and SetType could suffer from lock contention on the singleton factory getInstance(). Here is a proposal to reduce lock contention by using a ConcurrentMap and the putIfAbsent method rather than a synchronized method.