Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-11601

[Scripting] Use the LazyBindings instead of SimpleBindings

    XMLWordPrintableJSON

Details

    Description

      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.
      While the scripting itself does not necessarily use a LazyBindings.Supplier, other BindingValueProviders can be invoked on them, which do support the LazyBindings; and in that case there can be a benefit.

      Requires a bump of the dependency to Sling API though (at least 2.21.0 is required)

      Attachments

        Issue Links

          Activity

            People

              joerghoh Joerg Hoh
              joerghoh Joerg Hoh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 10m
                  2h 10m