Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 11003 invoked from network); 3 Jun 2010 20:54:27 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Jun 2010 20:54:27 -0000 Received: (qmail 32201 invoked by uid 500); 3 Jun 2010 20:54:26 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 32128 invoked by uid 500); 3 Jun 2010 20:54:26 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 32121 invoked by uid 99); 3 Jun 2010 20:54:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jun 2010 20:54:25 +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; Thu, 03 Jun 2010 20:54:23 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o53Ks03m004235 for ; Thu, 3 Jun 2010 20:54:01 GMT Message-ID: <16417096.167431275598440976.JavaMail.jira@thor> Date: Thu, 3 Jun 2010 16:54:00 -0400 (EDT) From: "Yonik Seeley (JIRA)" To: dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-2380) Add FieldCache.getTermBytes, to load term data as byte[] 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/LUCENE-2380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12875287#action_12875287 ] Yonik Seeley commented on LUCENE-2380: -------------------------------------- I did some performance testing on faceting using the field cache (single valued field with facet.method fc and fcs). field=100000 unique values fc: 5% slower fcs: 55% slower field=100 unique values fc: 2.5% slower fcs: 26% slower I'll look into it to see how we can regain some of that lost performance. > Add FieldCache.getTermBytes, to load term data as byte[] > -------------------------------------------------------- > > Key: LUCENE-2380 > URL: https://issues.apache.org/jira/browse/LUCENE-2380 > Project: Lucene - Java > Issue Type: Improvement > Components: Search > Reporter: Michael McCandless > Assignee: Michael McCandless > Fix For: 4.0 > > Attachments: LUCENE-2380.patch, LUCENE-2380.patch, LUCENE-2380.patch, LUCENE-2380.patch > > > With flex, a term is now an opaque byte[] (typically, utf8 encoded unicode string, but not necessarily), so we need to push this up the search stack. > FieldCache now has getStrings and getStringIndex; we need corresponding methods to load terms as native byte[], since in general they may not be representable as String. This should be quite a bit more RAM efficient too, for US ascii content since each character would then use 1 byte not 2. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org