Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 22947 invoked from network); 21 Feb 2011 08:52:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Feb 2011 08:52:08 -0000 Received: (qmail 80198 invoked by uid 500); 21 Feb 2011 08:52:07 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 79292 invoked by uid 500); 21 Feb 2011 08:52:05 -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 78673 invoked by uid 99); 21 Feb 2011 08:52:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Feb 2011 08:52:01 +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 08:51:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C6E721AF316 for ; Mon, 21 Feb 2011 08:51:38 +0000 (UTC) Date: Mon, 21 Feb 2011 08:51:38 +0000 (UTC) From: "Dawid Weiss (JIRA)" To: dev@lucene.apache.org Message-ID: <837834853.5371.1298278298811.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Created: (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 X-Virus-Checked: Checked by ClamAV on apache.org 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 Priority: Trivial Fix For: 4.0 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