ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-472

Making DataNode not instantiate a HashMap when the node is ephmeral

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.1, 3.2.0
    • Fix Version/s: 3.3.0
    • Component/s: server
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Looking at the code, there is an overhead of a HashSet object for that nodes children, even though the node might be an ephmeral node and cannot have children.

      1. zookeeper-472.patch
        47 kB
        Erik Holstad
      2. zookeeper-472.patch
        48 kB
        Patrick Hunt
      3. zookeeper-472.patch
        46 kB
        Erik Holstad
      4. zookeeper-472.patch
        50 kB
        Erik Holstad
      5. zookeeper-472.patch
        49 kB
        Erik Holstad
      6. zookeeper-472.patch
        77 kB
        Erik Holstad

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Erik Holstad
            Reporter:
            Erik Holstad
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development