You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Joerg Hoh (Jira)" <ji...@apache.org> on 2023/06/16 08:43:00 UTC

[jira] [Created] (SLING-11908) Cache already resolved child resources of resource type resources

Joerg Hoh created SLING-11908:
---------------------------------

             Summary: Cache already resolved child resources of resource type resources
                 Key: SLING-11908
                 URL: https://issues.apache.org/jira/browse/SLING-11908
             Project: Sling
          Issue Type: Task
            Reporter: Joerg Hoh
             Fix For: Servlets Resolver 2.9.14


The NamedScriptResourceCollector and the ResourceCollector both need to resolve the child resources of all resolved resourcetypes to determine which script/servlet to execute.

This is done over and over again; this overhead is unnecessary especially in scenarios, where a lot selectors are bound to the default resourcetype, which consistently need to get resolved, even if the default resourcetype is not used in this resolution at all.

This complete list of child resources should be cached (once resolved) and re-used instead of refetching it again.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)