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.