[ 
https://issues.apache.org/jira/browse/IGNITE-4908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16063434#comment-16063434
 ] 

Alexander Menshikov commented on IGNITE-4908:
---------------------------------------------

[~amashenkov]
Correct me if I'm wrong but looks like the main difference between 
IgniteCache.lock() and Ignite.reentrantLock() this: the Ignite.reentrantLock() 
uses a pessimistic repeatable read transaction, but the IgniteCache.lock() uses 
GridLocalLockFuture and avoids a heavy transaction. But the IgniteCache.lock() 
gives fewer guarantees. So it is a quite predictable result.

> Ignite.reentrantLock looks much slower than IgniteCache.lock.
> -------------------------------------------------------------
>
>                 Key: IGNITE-4908
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4908
>             Project: Ignite
>          Issue Type: Improvement
>          Components: data structures
>    Affects Versions: 1.8
>            Reporter: Andrew Mashenkov
>            Assignee: Alexander Menshikov
>             Fix For: 2.1
>
>
> We should make a benchmark and investigate this issue.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to