ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Tupitsyn (Jira)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-12414) .NET: Performance: review CopyOnWriteConcurrentDictionary.GetOrAdd usage and locking
Date Tue, 03 Dec 2019 13:03:00 GMT
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)

Mime
View raw message