[ 
https://issues.apache.org/jira/browse/SLING-11601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17618109#comment-17618109
 ] 

Joerg Hoh commented on SLING-11601:
-----------------------------------

No, these modules themselves do not necessarily use suppliers; but there are 
cases where a {{BindingValuesSupplier}} is invoked on that binding.
For example I found that 
https://github.com/apache/sling-org-apache-sling-models-impl/pull/39 was such a 
case and providing a LazyBinding had indeed an noticable effect.

> [Scripting] Use the LazyBindings instead of SimpleBindings
> ----------------------------------------------------------
>
>                 Key: SLING-11601
>                 URL: https://issues.apache.org/jira/browse/SLING-11601
>             Project: Sling
>          Issue Type: Improvement
>          Components: Sling Models
>    Affects Versions: Sling Models Impl 1.4.0
>            Reporter: Joerg Hoh
>            Assignee: Joerg Hoh
>            Priority: Major
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> At various modules Sling Scripting (and Sling Models) code still uses a 
> {{SimpleBindings}} implementation of the {{Bindings}}, while it could use 
> {{LazyBindings}} which are more efficient in case not all provided bindings 
> are required.
> Requires a bump of the dependency to Sling API though (at least 2.21.0 is 
> required)



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

Reply via email to