Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4750 New Resource Provider API
  3. SLING-5201

Improve resource provider resolving

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      With the new implementation, whenever the best matching resource provider for a path is searched, the implementation calls:
      CombinedResourceProvider#getMatchingProviders(path) which returns a list and then the first element from the list is fetched (through the head method).
      I think we could and should avoid creating the unnecessary intermediate list object, and simply return the most matching provider (which is the last one matching)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            cziegeler Carsten Ziegeler
            cziegeler Carsten Ziegeler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment