[ https://issues.apache.org/jira/browse/SLING-12011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Klco resolved SLING-12011. ------------------------------ Resolution: Fixed Fixed in https://github.com/apache/sling-org-apache-sling-app-cms/commit/c07f26ca731893375590de00219cde06fe742478 > CMS - Use LazyBindings > ---------------------- > > Key: SLING-12011 > URL: https://issues.apache.org/jira/browse/SLING-12011 > Project: Sling > Issue Type: Improvement > Components: App CMS > Affects Versions: App CMS 1.1.6 > Reporter: Dan Klco > Assignee: Dan Klco > Priority: Minor > Fix For: App CMS 1.1.8 > > Attachments: image-2023-08-26-09-40-00-139.png, > image-2023-08-26-09-42-52-390.png > > > While analyzing the Recent Requests for Sling CMS I noticed that it spends a > significant amount of time in the DefaultScriptBindingsValueProvider because > it's binding all of properties, even if they are not used. > !image-2023-08-26-09-40-00-139.png|thumbnail! > By using the LazyBindings and and the LazyBindings.Supplier we can avoid > binding unneeded properties. For a simple page like the attached one, this > reduces the request duration nearly in half. > !image-2023-08-26-09-42-52-390.png|thumbnail! -- This message was sent by Atlassian Jira (v8.20.10#820010)