Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-2255

Improve JcrResourceResolver#resolve performance when big number of vanityPath are present

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • JCR Resource 2.0.10
    • JCR Resource 2.1.0
    • JCR
    • None

    Description

      At the moment the performance of JcrResourceResolver#resolve is tight with the number of sling:vanityPath present in the repository.
      Large number of vanityPath means large response time specially in the worse case scenario (namely huge number of vanityPath and request that doesn't match any vanityPath) but also in the average cases.
      Sling currently employs generic regexps also for vanityPath, but since the regex behind a vanityPath is well know there is room for optimization.
      I'll attach a graphs that shows the situation and a potential patch.

      Attachments

        1. SLING-2255.txt
          10 kB
          Antonio Sanso
        2. performance.pdf
          19 kB
          Antonio Sanso

        Activity

          People

            cziegeler Carsten Ziegeler
            asanso Antonio Sanso
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: