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-2669) Improve reading of cached UUID for given document number
Date Wed, 30 Jun 2010 20:53:49 GMT

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

Marcel Reutegger updated JCR-2669:
----------------------------------

    Attachment: JCR-2669.patch

Proposed patch.

The test case shows that the custom field is 25 times faster.

> Improve reading of cached UUID for given document number
> --------------------------------------------------------
>
>                 Key: JCR-2669
>                 URL: https://issues.apache.org/jira/browse/JCR-2669
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-core
>            Reporter: Marcel Reutegger
>            Priority: Minor
>         Attachments: JCR-2669.patch
>
>
> CachingIndexReader.document(int n, FieldSelector fieldSelector) creates a new
> Field from the cached UUID. The lucene Field implementation always does a
> String.intern() on the field name, which is quite slow. We should probably have
> our own implementation for that specific use case where we know that the name
> is already interned. e.g. UUIDField implements Fieldable.

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