Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-472

Making DataNode not instantiate a HashMap when the node is ephmeral

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1.1, 3.2.0
    • 3.3.0
    • server
    • None
    • 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.

      Attachments

        1. zookeeper-472.patch
          47 kB
          Erik Holstad
        2. zookeeper-472.patch
          48 kB
          Patrick D. 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

          People

            erikholstad@gmail.com Erik Holstad
            erikholstad@gmail.com Erik Holstad
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: