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

Alexander Kolbasov commented on HIVE-18039:
-------------------------------------------

It is also worth considering 3-rd party Cache implementations - e.g. Caffeine 
(https://github.com/ben-manes/caffeine).

> Use ConcurrentHashMap for CachedStore
> -------------------------------------
>
>                 Key: HIVE-18039
>                 URL: https://issues.apache.org/jira/browse/HIVE-18039
>             Project: Hive
>          Issue Type: Improvement
>          Components: Hive
>    Affects Versions: 3.0.0
>            Reporter: Alexander Kolbasov
>
> SharedCache used by CachedStore uses single big lock to synchronize all 
> access. This looks like an overkill - looks like it is possible to use 
> ConcurrentHashMap instead. Also it makes sense to move deepCopy() operations 
> outside the lock to reduce lock hold times.



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

Reply via email to