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] Created: (JCR-2769) Avoid String.intern() for UUID terms
Date Wed, 06 Oct 2010 11:37:30 GMT
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
         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