Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-726

Implement KernelNodeState.hasChildNode()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.7
    • core
    • None

    Description

      During tests I frequently see KernelNodeState.getChildPath() and KernelNodeState.getChildNode() as hot spots. Some of those calls can be avoided when KernelNodeState implements hasChildNode(). Currently it will just fall back to the generic implementation in AbstractNodeState, which attempts to load the child node. In most cases this is unnecessary when the node state is a KernelNodeState because this implementation keeps the child node names in a set (up to MAX_CHILD_NODE_NAMES).

      Attachments

        Activity

          People

            mreutegg Marcel Reutegger
            mreutegg Marcel Reutegger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: