[ 
https://issues.apache.org/jira/browse/SLING-2255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Antonio Sanso updated SLING-2255:
---------------------------------

    Attachment: performance.pdf

the graph shows the response in ms vs # of nodes (with and without vanity path) 
of the worse case scenario described in the ticker for three different 
situation:

- normal resolve
- resolve having vanitypath (one vanityPath per node)
- resolve having vanitypath (one vanityPath per node) with the patch applied
                
> Improve JcrResourceResolver#resolve performance when big number of vanityPath 
> are present
> -----------------------------------------------------------------------------------------
>
>                 Key: SLING-2255
>                 URL: https://issues.apache.org/jira/browse/SLING-2255
>             Project: Sling
>          Issue Type: Improvement
>          Components: JCR
>            Reporter: Antonio Sanso
>            Priority: Minor
>         Attachments: performance.pdf
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to