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

Refactor the optimize logic regarding path include and exclude to avoid duplication

    XMLWordPrintableJSON

    Details

      Description

      ObservationManagerImpl has a optimize method which process the list of includes and excludes and removes redundant clauses. That logic is now also being used in index filtering (OAK-2599) and is getting duplicated.

      Going forward we need to refactor this logic so that both places can use it without copying. Possibly making it part of PathUtils

      Michael Dürig Also suggested to further optimize

      Also PathFilter#optimise could be further optimised by removing entries that subsume each other (e.g. including /a/b, /a is the same as including (/a.

        Attachments

        1. OAK-2814-v1.patch
          4 kB
          Chetan Mehrotra

          Issue Links

            Activity

              People

              • Assignee:
                chetanm Chetan Mehrotra
                Reporter:
                chetanm Chetan Mehrotra
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: