From dev-return-19671-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Fri Aug 08 14:58:37 2008 Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 92189 invoked from network); 8 Aug 2008 14:58:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Aug 2008 14:58:37 -0000 Received: (qmail 72156 invoked by uid 500); 8 Aug 2008 14:58:36 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 71779 invoked by uid 500); 8 Aug 2008 14:58:35 -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 71768 invoked by uid 99); 8 Aug 2008 14:58:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Aug 2008 07:58:35 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Aug 2008 14:57:47 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 385CB234C190 for ; Fri, 8 Aug 2008 07:57:44 -0700 (PDT) Message-ID: <2100738268.1218207464218.JavaMail.jira@brutus> Date: Fri, 8 Aug 2008 07:57:44 -0700 (PDT) From: "Marcel Reutegger (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-1715) Prevent excessive Path.Element instances In-Reply-To: <904382931.1218205544421.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-1715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12620945#action_12620945 ] Marcel Reutegger commented on JCR-1715: --------------------------------------- A note on the Path.Element cache in PathFactoryImpl. Because equals and hashCode on Path.Element is defined to use the normalized index I had to limit the cacheable path elements to the ones with an undefined index. > Prevent excessive Path.Element instances > ---------------------------------------- > > Key: JCR-1715 > URL: https://issues.apache.org/jira/browse/JCR-1715 > Project: Jackrabbit > Issue Type: Improvement > Components: jackrabbit-core, jackrabbit-spi-commons > Reporter: Marcel Reutegger > Priority: Minor > Attachments: JCR-1715-part1.patch, JCR-1715-part2.patch > > > Even when a CachingHierarchyManager is used jackrabbit creates a lot of Path.Element instances. The internally used PathMap (spi-commons) creates new Path.Element instances whenever a path is constructed, even when the path is constructed from cached PathMap.Elements. > Running a test with 10k nodes results in 250k Path.Element instances being created and held in memory (mostly for events). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.