jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig <mdue...@apache.org>
Subject Re: NodeBuilder#setProperty using the same value
Date Thu, 06 Jun 2013 09:15:34 GMT

On 5.6.13 13:43, Jukka Zitting wrote:
> Hi,
> On Wed, Jun 5, 2013 at 3:32 PM, Alex Parvulescu
> <alex.parvulescu@gmail.com> wrote:
>> I'm wondering if we could turn the NodeBuilder#setProperty into a noop when
>> setting the same value on a property.
> I don't see any bigger issues with this, though it would be nice to
> have a benchmark that verifies that the added complexity (though small
> in this case) is worth it.

Upfront equality check on all such calls might end up being more 
expensive then allowing a property to be set to its own value once in a 


View raw message