You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Michael Dürig (JIRA)" <ji...@apache.org> on 2013/03/01 15:45:13 UTC
[jira] [Resolved] (OAK-201) NamespaceRegistry is very slow
[ https://issues.apache.org/jira/browse/OAK-201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Dürig resolved OAK-201.
-------------------------------
Resolution: Fixed
Fix Version/s: 0.7
Cleaning up old issues. Please reopen if necessary. Consider opening a new issue for follow up work.
> NamespaceRegistry is very slow
> ------------------------------
>
> Key: OAK-201
> URL: https://issues.apache.org/jira/browse/OAK-201
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: core, jcr
> Reporter: Thomas Mueller
> Fix For: 0.7
>
> Attachments: OAK-201.patch, SessionImpl.patch
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira