You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Maxim Muzafarov (Jira)" <ji...@apache.org> on 2020/12/29 08:51:09 UTC

[jira] [Updated] (IGNITE-12414) .NET: Performance: review CopyOnWriteConcurrentDictionary.GetOrAdd usage and locking

     [ https://issues.apache.org/jira/browse/IGNITE-12414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maxim Muzafarov updated IGNITE-12414:
-------------------------------------
    Fix Version/s:     (was: 2.10)
                       (was: 3.0)

> .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
>            Priority: Major
>              Labels: .NET
>
> 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)