Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 65883 invoked from network); 21 Feb 2011 17:50:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Feb 2011 17:50:02 -0000 Received: (qmail 85452 invoked by uid 500); 21 Feb 2011 17:50:01 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 85349 invoked by uid 500); 21 Feb 2011 17:49:59 -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 85342 invoked by uid 99); 21 Feb 2011 17:49:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Feb 2011 17:49:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Feb 2011 17:49:58 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6E0E21B0846 for ; Mon, 21 Feb 2011 17:49:38 +0000 (UTC) Date: Mon, 21 Feb 2011 17:49:38 +0000 (UTC) From: "Dawid Weiss (JIRA)" To: dev@lucene.apache.org Message-ID: <1737256483.6176.1298310578447.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <837834853.5371.1298278298811.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Updated: (LUCENE-2933) Two-stage state expansion for the FST: distance-from-root and child-count criteria. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-2933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dawid Weiss updated LUCENE-2933: -------------------------------- Attachment: LUCENE-2933.patch Patch and tests. > Two-stage state expansion for the FST: distance-from-root and child-count criteria. > ----------------------------------------------------------------------------------- > > Key: LUCENE-2933 > URL: https://issues.apache.org/jira/browse/LUCENE-2933 > Project: Lucene - Java > Issue Type: Improvement > Components: Index > Reporter: Dawid Weiss > Assignee: Dawid Weiss > Priority: Trivial > Fix For: 4.0 > > Attachments: LUCENE-2933.patch > > > In the current implementation FST states are expanded into a binary search on labels (from a vector of transitions) when the child count of a state exceeds a given predefined threshold (NUM_ARCS_FIXED_ARRAY). This threshold affects automaton size and traversal speed (as it turns out when benchmarked). For some degenerate (?) data sets, close-to-the-root nodes could have a small number of children (below the threshold) and yet be traversed on every single seek. > A fix of this is to introduce two control thresholds: > EXPAND state if (distance-from-root <= MIN_DISTANCE || children-count >= NUM_ARCS_FIXED_ARRAY) > My plan is to create a data set that will prove this first and then to implement the workaround above. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org