Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 237E81016A for ; Wed, 5 Jun 2013 12:44:13 +0000 (UTC) Received: (qmail 289 invoked by uid 500); 5 Jun 2013 12:44:12 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 164 invoked by uid 500); 5 Jun 2013 12:44:12 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 155 invoked by uid 99); 5 Jun 2013 12:44:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jun 2013 12:44:11 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jukka.zitting@gmail.com designates 209.85.214.179 as permitted sender) Received: from [209.85.214.179] (HELO mail-ob0-f179.google.com) (209.85.214.179) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jun 2013 12:44:04 +0000 Received: by mail-ob0-f179.google.com with SMTP id xk17so2466961obc.38 for ; Wed, 05 Jun 2013 05:43:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=Ymycegq5weXsUQGaPSeyXBeQcmpOZPbqjjOGkhc/ms4=; b=nCQycrAcc11SBkQTXHbA/M7M48AqHmlRnt6GnZoGxzy4ypIFKjb1EobDgW8LBAsQoN pvKrVf5Z1fVTN4eHFh3uGMwaENuf87U9cpK8TEZHyRAfwLPxqBipQnussJrT0pVHvA3k +Ou4Es8U1SQ+5wibOTX98Wkaz+Szwj/Oa6Mp2NK+bJUmTdr2kIzaKbTueSUp1bK6reK4 /ifPZGN+y7iqkDlsQBl/dffBNr/768a29rrI0HSvU/BN77RgTPimdE4ifYkeVZNGmuZ5 WKqf8Q9cRs3FGPY30b6TNLUNA6ZFcVN53utpxA3GuEANdyG8Y6ln8WeAGWSun7EzHgL0 S5QA== X-Received: by 10.182.220.161 with SMTP id px1mr14624737obc.82.1370436223683; Wed, 05 Jun 2013 05:43:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.113.225 with HTTP; Wed, 5 Jun 2013 05:43:23 -0700 (PDT) In-Reply-To: References: From: Jukka Zitting Date: Wed, 5 Jun 2013 15:43:23 +0300 Message-ID: Subject: Re: NodeBuilder#setProperty using the same value To: Oak devs Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi, On Wed, Jun 5, 2013 at 3:32 PM, Alex Parvulescu 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. Note that such no-op changes are currently in any case filtered out when producing the JSOP diff that's then passed to the underlying MicroKernel. And the SegmentMK uses other means of detecting and unifying duplicate content. BR, Jukka Zitting