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 D1159ED35 for ; Tue, 19 Mar 2013 16:17:17 +0000 (UTC) Received: (qmail 98568 invoked by uid 500); 19 Mar 2013 16:17:14 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 98529 invoked by uid 500); 19 Mar 2013 16:17:14 -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 98493 invoked by uid 99); 19 Mar 2013 16:17:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Mar 2013 16:17:14 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of anchela@adobe.com designates 64.18.1.39 as permitted sender) Received: from [64.18.1.39] (HELO exprod6og117.obsmtp.com) (64.18.1.39) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Mar 2013 16:17:08 +0000 Received: from outbound-smtp-2.corp.adobe.com ([193.104.215.16]) by exprod6ob117.postini.com ([64.18.5.12]) with SMTP ID DSNKUUiPbhejjTyRPuqn2h+LuromPo7sg8cs@postini.com; Tue, 19 Mar 2013 09:16:47 PDT Received: from inner-relay-4.eur.adobe.com (inner-relay-4b [10.128.4.237]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r2JGGj2h008773 for ; Tue, 19 Mar 2013 09:16:45 -0700 (PDT) Received: from nahub02.corp.adobe.com (nahub02.corp.adobe.com [10.8.189.98]) by inner-relay-4.eur.adobe.com (8.12.10/8.12.9) with ESMTP id r2JGEXXf028871 for ; Tue, 19 Mar 2013 09:16:43 -0700 (PDT) Received: from eurhub01.eur.adobe.com (10.128.4.30) by nahub02.corp.adobe.com (10.8.189.98) with Microsoft SMTP Server (TLS) id 8.3.298.1; Tue, 19 Mar 2013 09:15:55 -0700 Received: from angela.eur.adobe.com (10.132.1.7) by eurhub01.eur.adobe.com (10.128.4.111) with Microsoft SMTP Server id 8.3.298.1; Tue, 19 Mar 2013 16:15:53 +0000 Message-ID: <51488F39.6090005@adobe.com> Date: Tue, 19 Mar 2013 17:15:53 +0100 From: Angela Schreiber User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: Subject: Re: svn commit: r1458234 - in /jackrabbit/oak/trunk: oak-core/src/main/java/org/apache/jackrabbit/oak/core/ oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/ oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/version/ oak-core/src/main/java/o References: <9C0FC4C8E9C29945B01766FC7F9D3898178B1A68D8@eurmbx01.eur.adobe.com> <51487168.6050906@adobe.com> <9C0FC4C8E9C29945B01766FC7F9D3898178BA0F7B3@eurmbx01.eur.adobe.com> In-Reply-To: <9C0FC4C8E9C29945B01766FC7F9D3898178BA0F7B3@eurmbx01.eur.adobe.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org hi marcel On 3/19/13 4:09 PM, Marcel Reutegger wrote: >> right... but i don't see why we have to recalculate the path >> when the node states already know about them and we usually >> do know the path of an immutable tree because we have >> traversed to there using the TreeLocations. > > the problem is, only the KernelNodeState knows about its path, > but none of the other five classes implementing NodeState do. > >> IMO we should have NodeState#getPath but as long as we don't >> have that i will need sort of workaround to have an efficient >> way to handle ImmutableTree#getPath. > > AFAIU, NodeState was specifically designed to not require a path. > > how about caching the path in ImmutableTree? IIUC this tree > implementation works on top of NodeStates, which means the > path will never change, right? we had that already in a previous version but it got reverted. i can live with any solution as long as the path is not calculated when it's actually known already. kind regards angela > Regards > Marcel