Pavel Tupitsyn created IGNITE-12414:
---------------------------------------

             Summary: .NET: Performance: review 
CopyOnWriteConcurrentDictionary.GetOrAdd usage and locking
                 Key: IGNITE-12414
                 URL: https://issues.apache.org/jira/browse/IGNITE-12414
             Project: Ignite
          Issue Type: Improvement
          Components: platforms
            Reporter: Pavel Tupitsyn
            Assignee: Pavel Tupitsyn
             Fix For: 3.0, 2.9


CopyOnWriteConcurrentDictionary.GetOrAdd uses lock right away, while the class 
assumes frequent reads and infrequent writes. It can be beneficial to check for 
the key outside of the lock.

In particular, this often causes contention because of 
BinarySystemHandlers.GetWriteHandler call.

Review other usages of this method.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to