Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-10585

Avoid early creation of Node objects in LRUDictionary.BidirectionalLRUMap

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.98.1, 0.99.0
    • None
    • None
    • Reviewed

    Description

      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.

      Attachments

        1. HBASE-10585.patch
          2 kB
          Anoop Sam John

        Activity

          People

            anoop.hbase Anoop Sam John
            anoop.hbase Anoop Sam John
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: