Return-Path: Delivered-To: apmail-jakarta-lucene-dev-archive@www.apache.org Received: (qmail 36546 invoked from network); 11 Dec 2004 22:04:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Dec 2004 22:04:48 -0000 Received: (qmail 74035 invoked by uid 500); 11 Dec 2004 22:04:45 -0000 Delivered-To: apmail-jakarta-lucene-dev-archive@jakarta.apache.org Received: (qmail 74013 invoked by uid 500); 11 Dec 2004 22:04:45 -0000 Mailing-List: contact lucene-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Developers List" Reply-To: "Lucene Developers List" Delivered-To: mailing list lucene-dev@jakarta.apache.org Received: (qmail 73996 invoked by uid 99); 11 Dec 2004 22:04:45 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from smtp-vbr13.xs4all.nl (HELO smtp-vbr13.xs4all.nl) (194.109.24.33) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 11 Dec 2004 14:04:44 -0800 Received: from k8l.lan (porta.xs4all.nl [80.127.24.69]) by smtp-vbr13.xs4all.nl (8.12.11/8.12.11) with ESMTP id iBBM4fmN074650 for ; Sat, 11 Dec 2004 23:04:41 +0100 (CET) (envelope-from paul.elschot@xs4all.nl) From: Paul Elschot To: lucene-dev@jakarta.apache.org Subject: Re: Boolean Scorer Date: Sat, 11 Dec 2004 23:04:40 +0100 User-Agent: KMail/1.5.4 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200412112304.40685.paul.elschot@xs4all.nl> X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Chuck, On Friday 10 December 2004 23:12, Chuck Williams wrote: > Paul, > > Would there be a way to get the best of both worlds? E.g., could you > factor the specializable score combination differently, so that one > method was called with each new score to generate a state entity, while > a final method computed the score from the state. For both sum and max, > the state entity could just be a float, not requiring an array. The > final operation for the sum with coord case would do the coord. I > haven't looked at the code carefully enough to see if this actually > works, but it seemed worth mentioning. It's simple enough to do some abstract method call instead of initializing a sum or adding to it. The problem is that as long as such a call is not effectively inlined by the JVM, it will cause a performance hit for the sum case. The latest version of the advanceAfterCurrent method that computes the score is java protected. It can be overridden to make the best of it in another world. Regards, Paul Elschot --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-dev-help@jakarta.apache.org