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

NodeImpl: calculate mixinTypes lazy

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.62.0
    • jcr

    Description

      NodeImpl.isNodeType() calls ReadOnlyTypeManager.isNodeType(), but calculates all mixinTypes directly, even if the mixinTypes are not required in ReadOnlyTypeManager.isNodeType().

      The calculation of the mixinTypes could be converted into a Supplier<> type; and the resolution could be done only when the mixinTypes are actually required. This would save a few CPU cycles for the common case, where the mixinTypes are not required.

      Attachments

        Issue Links

          Activity

            People

              joerghoh Joerg Hoh
              joerghoh Joerg Hoh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: