You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Anoop Sam John (JIRA)" <ji...@apache.org> on 2014/02/21 11:40:20 UTC

[jira] [Commented] (HBASE-10585) Avoid early creation of Node objects in LRUDictionary.BidirectionalLRUMap

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

Anoop Sam John commented on HBASE-10585:
----------------------------------------

We initialize dict for region and table also with capacity as Short.MAX_VALUE which normally is too high for these.  Now it will create these many Node objects.

> Avoid early creation of Node objects in LRUDictionary.BidirectionalLRUMap
> -------------------------------------------------------------------------
>
>                 Key: HBASE-10585
>                 URL: https://issues.apache.org/jira/browse/HBASE-10585
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Anoop Sam John
>            Assignee: Anoop Sam John
>             Fix For: 0.98.1, 0.99.0
>
>         Attachments: HBASE-10585.patch
>
>
> When LRUDictionary initialized with N as the size, the BidirectionalLRUMap creates N Node objects and kept in an array. It will be better not doing this eager creation. Can create Node object on demand if array's current position Node element is null. Once it is created the object can be reused as we do now.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)