You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Aleksey Plekhanov (Jira)" <ji...@apache.org> on 2020/07/22 05:57:00 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 ]
Aleksey Plekhanov updated IGNITE-12414:
---------------------------------------
Fix Version/s: (was: 2.9)
2.10
> .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
> Fix For: 3.0, 2.10
>
>
> 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)