hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anoop Sam John (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-10585) Avoid early creation of Node objects in LRUDictionary.BidirectionalLRUMap
Date Fri, 21 Feb 2014 10:30:19 GMT
Anoop Sam John created HBASE-10585:
--------------------------------------

             Summary: 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
         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)

Mime
View raw message