On 5.6.13 13:43, Jukka Zitting wrote:
Hi,

On Wed, Jun 5, 2013 at 3:32 PM, Alex Parvulescu
<[email protected]> 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 while.

Michael

Reply via email to