Re: [Scripting] Bindings returning null

2022-02-11 Thread Jörg Hoh
Hi Radu, Right now some BVPs are build in a way, that the binding is just added if their value is not null, and this prevents often to make good use of the lazy evaluation; instead the checks are done when adding the binding. I would then adjust the existing BVPs to always use the features of the

Re: [Scripting] Bindings returning null

2022-02-09 Thread Radu Cotescu
Hi Jörg, > On 4 Feb 2022, at 12:00, Jörg Hoh wrote: > > In my opinion we should adjust these BindingsValuesProviders and require > the consumers of these bindings to make sure that they do the null-check as > required by the spec. What do you specifically mean by adjusting the BVPs? Do you have

Re: [Scripting] Bindings returning null

2022-02-07 Thread Nicolas Peltier
em. > > stefan > > >-Original Message- > >From: Jörg Hoh > >Sent: Friday, February 4, 2022 12:01 PM > >To: Sling Developers List > >Subject: [Scripting] Bindings returning null > > > >Hi, > > > >I am currently workin

RE: [Scripting] Bindings returning null

2022-02-07 Thread Stefan Seifert
bruary 4, 2022 12:01 PM >To: Sling Developers List >Subject: [Scripting] Bindings returning null > >Hi, > >I am currently working on a number of smaller performance improvements, and >I found that some BindingsValuesProvider could benefit from providings >lazily. In that ca

[Scripting] Bindings returning null

2022-02-04 Thread Jörg Hoh
Hi, I am currently working on a number of smaller performance improvements, and I found that some BindingsValuesProvider could benefit from providings lazily. In that case the binding is added, but the value is only resolved when the value of the binding is actually needed, instead of resolving th