Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 92470 invoked from network); 3 Oct 2005 10:29:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Oct 2005 10:29:12 -0000 Received: (qmail 20613 invoked by uid 500); 3 Oct 2005 10:29:11 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 20596 invoked by uid 99); 3 Oct 2005 10:29:10 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2005 03:29:09 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 8E3C4E1 for ; Mon, 3 Oct 2005 12:28:48 +0200 (CEST) Message-ID: <26638205.1128335328580.JavaMail.jira@ajax.apache.org> Date: Mon, 3 Oct 2005 12:28:48 +0200 (CEST) From: "Tobias Strasser (JIRA)" To: jackrabbit-dev@incubator.apache.org Subject: [jira] Commented: (JCR-235) Cache jcr name to QName mappings In-Reply-To: <1052793550.1128333109007.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/JCR-235?page=comments#action_12331150 ] Tobias Strasser commented on JCR-235: ------------------------------------- suggest to extends the NamespaceResolver interface by the respective QName translation methods. This would enable a broader usage of an eventual cache. fruthermore could the session local namespace/qname resolvers be sensitive to local namespace mappings. > Cache jcr name to QName mappings > -------------------------------- > > Key: JCR-235 > URL: http://issues.apache.org/jira/browse/JCR-235 > Project: Jackrabbit > Type: Improvement > Components: core > Reporter: Marcel Reutegger > Assignee: Stefan Guggisberg > Priority: Minor > Attachments: QNameResolver.patch > > Currently jcr names are always parsed and resolved into QName instances. Introducing a cache would increase performance and also save memory because well known and often used jcr names would always return the same QName instance from cache. > Testing with common read operations shows a performance improvement of about 25%. > The test involved the following methods on Node interface: > - getProperty() > - getProperties() > - getName() > - getPath() > - isLocked() > - isNodeType() > - getPrimaryNodeType() > - hasNodes() > - getNodes() > Attached proposed implementation of a QNameResolver. > Please comment. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira