Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 4852 invoked from network); 8 Feb 2007 08:58:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Feb 2007 08:58:57 -0000 Received: (qmail 68380 invoked by uid 500); 8 Feb 2007 08:59:03 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 68354 invoked by uid 500); 8 Feb 2007 08:59:02 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 68345 invoked by uid 99); 8 Feb 2007 08:59:02 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Feb 2007 00:59:02 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of stefan.guggisberg@gmail.com designates 66.249.92.173 as permitted sender) Received: from [66.249.92.173] (HELO ug-out-1314.google.com) (66.249.92.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Feb 2007 00:58:53 -0800 Received: by ug-out-1314.google.com with SMTP id m3so416349uge for ; Thu, 08 Feb 2007 00:58:32 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hInM/6JkVTFeduvRTvpcAxnG8vKBTtfXLzzM7wdbCUiOHdrr2fYRANdjNqpvXslv0xin6jZMgPoyuzklqO/JbHmBEWOTz6jUTvLBx/BmJ4Ebs4LKfCD1KO2j55o9LVJG5i+bgXP/lIauyQ7aySHops1VaP6oM9G1bsC2WsBcF2Q= Received: by 10.78.205.7 with SMTP id c7mr3846834hug.1170925112007; Thu, 08 Feb 2007 00:58:32 -0800 (PST) Received: by 10.49.3.2 with HTTP; Thu, 8 Feb 2007 00:58:31 -0800 (PST) Message-ID: <90a8d1c00702080058x1041264amc1940196492228e@mail.gmail.com> Date: Thu, 8 Feb 2007 09:58:31 +0100 From: "Stefan Guggisberg" To: dev@jackrabbit.apache.org Subject: Re: svn commit: r504623 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SessionImpl.java In-Reply-To: <90a8d1c00702080044s8f3f8e0j47fdda296b2a86f8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070207172102.9EA741A981A@eris.apache.org> <510143ac0702071105t4c96d890kbb126506520c228@mail.gmail.com> <90a8d1c00702080044s8f3f8e0j47fdda296b2a86f8@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On 2/8/07, Stefan Guggisberg wrote: > On 2/7/07, Jukka Zitting wrote: > > Hi, > > > > On 2/7/07, stefan@apache.org wrote: > > > public Node getNodeByUUID(UUID uuid) throws ItemNotFoundException, RepositoryException { > > > NodeImpl node = getNodeById(new NodeId(uuid)); > > > + // since the uuid of a node is only exposed through jcr:uuid declared > > > + // by mix:referenceable it's rather unlikely that a client can possibly > > > + // know the internal uuid of a non-referenceable node; omitting the > > > + // check for mix:referenceable seems therefore to be a reasonable > > > + // compromise in order to improve performance. > > > +/* > > > if (node.isNodeType(QName.MIX_REFERENCEABLE)) { > > > return node; > > > } else { > > > // there is a node with that uuid but the node does not expose it > > > throw new ItemNotFoundException(uuid.toString()); > > > } > > > +*/ > > > + return node; > > > } > > > > Sounds reasonable, but I'm not convinced that the performance gain is > > noticeable enough to justify the change. What's the access pattern > > we're trying to speed up? > > well, applications that make *heavy* use of Node.getNodeByUUID do of course i meant Session.getNodeByUUID... cheers stefan > benefit considerably as shown by our profiling data. > > cheers > stefan > > > > > BR, > > > > Jukka Zitting > > >