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 7E31AD66C for ; Mon, 23 Jul 2012 10:31:42 +0000 (UTC) Received: (qmail 658 invoked by uid 500); 23 Jul 2012 10:31:42 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 99427 invoked by uid 500); 23 Jul 2012 10:31:35 -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 99384 invoked by uid 99); 23 Jul 2012 10:31:34 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jul 2012 10:31:34 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 97C8F142838 for ; Mon, 23 Jul 2012 10:31:34 +0000 (UTC) Date: Mon, 23 Jul 2012 10:31:34 +0000 (UTC) From: "Thomas Mueller (JIRA)" To: oak-dev@jackrabbit.apache.org Message-ID: <375075498.90469.1343039494623.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Created] (OAK-201) NamespaceRegistry is very slow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Thomas Mueller created OAK-201: ---------------------------------- Summary: NamespaceRegistry is very slow Key: OAK-201 URL: https://issues.apache.org/jira/browse/OAK-201 Project: Jackrabbit Oak Issue Type: Bug Reporter: Thomas Mueller The NamespaceRegistryImpl.getURI and getPrefix are called a lot, for example by NamePathMapperImpl.getOakName. The method doesn't do any caching, which is a problem because it has to read it each time from the repository. Even if it would do caching, it wouldn't help because it the method WorkspaceImpl.getNamespaceRegistry creates a new NamespaceRegistryImpl each time it is called. To allow caching of known mappings, the instance needs to be cached as well. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira