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

Indexing job: optimize check for hidden nodes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Done
    • None
    • 1.64.0
    • indexing
    • None

    Description

      While downloading the repository from Mongo, the indexing job has to discard hidden entries. This is being done by a call to NodeStateUtils.isHiddenPath(). This call is rather expensive, as it creates an iterator over the path segments, which requires creating a new string for each path segment. As the indexing job has to check every entry to verify if it is hidden, this creates a significant overhead.

      The implementation of checking for hidden paths can be replaced by a simple search for "/:" in the string representing the path, which requires no object allocation and should therefore be much faster.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nuno.santos Nuno Santos
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: