Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 36770 invoked from network); 30 Jun 2010 20:54:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Jun 2010 20:54:15 -0000 Received: (qmail 52102 invoked by uid 500); 30 Jun 2010 20:54:14 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 51931 invoked by uid 500); 30 Jun 2010 20:54:14 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 51924 invoked by uid 99); 30 Jun 2010 20:54:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jun 2010 20:54:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jun 2010 20:54:11 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5UKrnbs017473 for ; Wed, 30 Jun 2010 20:53:50 GMT Message-ID: <14441378.141311277931229365.JavaMail.jira@thor> Date: Wed, 30 Jun 2010 16:53:49 -0400 (EDT) From: "Marcel Reutegger (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-2669) Improve reading of cached UUID for given document number In-Reply-To: <28066123.141301277930989337.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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.