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

Felix Meschberger resolved SLING-4240.
--------------------------------------
    Resolution: Fixed

Thanks for providing the patch. I have applied it slightly modified in Rev. 
1645651.

The modification is dropping the proposed AdminResourceResolverProvider service 
in favor of storing this per script execution ResourceResolver in the 
RenderContextImpl and making it available to the internal UseProvider services.

> Improve Sightly engine performance
> ----------------------------------
>
>                 Key: SLING-4240
>                 URL: https://issues.apache.org/jira/browse/SLING-4240
>             Project: Sling
>          Issue Type: Improvement
>          Components: Scripting
>            Reporter: Radu Cotescu
>            Assignee: Felix Meschberger
>             Fix For: Scripting Sightly Engine 1.0.0
>
>         Attachments: SLING-4240.patch
>
>
> Several areas of the engine's implementation can be improved to greatly 
> reduce compilation & rendering times:
> * rely on the dynamic classloader's cache rather than compile Use-API POJOs 
> all the time
> * reduce the number of repository reads in favour of events for deducing if a 
> Sightly script or Use-API POJO needs to be recompiled
> * use a per thread admin resource resolver instead of creating many resolvers 
> in various components during the lifecycle of a request
> * optimise the {{RenderContext}} implementation code that handles object 
> methods and fields detection



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to