You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2010/10/06 13:37:31 UTC
[jira] Updated: (JCR-2769) Avoid String.intern() for UUID terms
[ https://issues.apache.org/jira/browse/JCR-2769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marcel Reutegger updated JCR-2769:
----------------------------------
Attachment: TermFactory.patch
Proposed patch.
> Avoid String.intern() for UUID terms
> ------------------------------------
>
> Key: JCR-2769
> URL: https://issues.apache.org/jira/browse/JCR-2769
> Project: Jackrabbit Content Repository
> Issue Type: Improvement
> Components: jackrabbit-core
> Reporter: Marcel Reutegger
> Priority: Minor
> Fix For: 2.2.0
>
> Attachments: TermFactory.patch
>
>
> Creating Lucene terms is somewhat expensive, because it will usually call String.intern() on the field String. Jackrabbit uses UUID terms quite heavily to resolve hierarchy constraints. Lucene also provides a factory method on a Term that will create a new term instance with a given value and the same field name, avoiding the String.intern(). Jackrabbit should use the factory method whenever it creates a term for a UUID field.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.