Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
JCR Resource 2.0.10
-
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.