jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Reutegger (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-2769) Avoid String.intern() for UUID terms
Date Thu, 07 Oct 2010 14:48:32 GMT

     [ https://issues.apache.org/jira/browse/JCR-2769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Marcel Reutegger updated JCR-2769:
----------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

Applied patch in revision: 1005470

> 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.


Mime
View raw message