Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 72662 invoked from network); 9 Jun 2010 07:44:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Jun 2010 07:44:13 -0000 Received: (qmail 15117 invoked by uid 500); 9 Jun 2010 07:44:12 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 14968 invoked by uid 500); 9 Jun 2010 07:44:10 -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 14961 invoked by uid 99); 9 Jun 2010 07:44:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jun 2010 07:44:10 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=10.0 tests=AWL,FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of earwin@gmail.com designates 209.85.214.48 as permitted sender) Received: from [209.85.214.48] (HELO mail-bw0-f48.google.com) (209.85.214.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jun 2010 07:44:04 +0000 Received: by bwz5 with SMTP id 5so1255bwz.35 for ; Wed, 09 Jun 2010 00:43:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=X/tX+UI2e/82Y3eeMpdaB89s2Z6l4uTYvvsOFHs1D3I=; b=VK2kWiI2W9euTlC3a3IwKuewtvlI1uOP+BE0jYcaiYGsTWDU+NyXkMDhq49Lc9OeGd I2BUTE2WevYMXG39pWnE6r0T7tTA6gvAvz+zOy1iXTFYvVHM5sfbHV6Nx1z07m+tRQ82 4kOJsKabvlSeSVaJE209uYE8FbWACOUOD2lWI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=mBr86Q4RZpCGENKbeQj85r2U7RfxxIAUnwYsN8GGfoSJeoyMADHRjqFb7HhQ/CIAkY WWcwCaOkRK9e0i1kp2Kxt9Ux1HYib4PH6MZ/N95MQkQDtj0c1gK5nFM9X289O9c3ZEQO f7D0s+2TpQGDliOyAT8V8HTUOfitK4eEPK1co= MIME-Version: 1.0 Received: by 10.204.5.195 with SMTP id 3mr418571bkw.193.1276068923236; Wed, 09 Jun 2010 00:35:23 -0700 (PDT) Received: by 10.204.154.91 with HTTP; Wed, 9 Jun 2010 00:35:23 -0700 (PDT) In-Reply-To: References: Date: Wed, 9 Jun 2010 11:35:23 +0400 Message-ID: Subject: Re: Proposal: Scorer api change From: Earwin Burrfoot To: dev@lucene.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Lies, lies, lies :) I mean, Sun JIT is overrelied on. Especially in regards to inlining. But, there are some cases when you can trust it. I.e. if you call a virtual method and this exact call-site gets refs to different objects at runtime (meaning here - you wrap different Queries in your WrapperQuery) - you can definetly rely on a call not being inlined. So, I agree with John on his /rough/ overhead estimates, on the part that it exists, and it's detectable. I don't agree on allowing arbitrary doc scoring. People who really need this for some strange applications, can emulate this now - by advancing() scorer to needed doc, and calling score(). But for most people it's unnecessary, and as I said - will lead to scaaary code. If you really think that one or two method calls in a loop are neglible, I ask you to join my holy crusade and erase Scorer.score(Collector) set of methods :) they exist there for the sole purporse of cutting on a few method calls, and are really, really, really confusing. 2010/6/9 Shai Erera : > I don't think the method call is an overhead John. You don't need to > reiterate it. The compiler does make optimizations and inlines such > code/calls if it can. More than that, the query processing involves so mu= ch > method calls, that I do think that's insignificant. Woohoo! Mexican standoff! :) --=20 Kirill Zakharenko/=D0=9A=D0=B8=D1=80=D0=B8=D0=BB=D0=BB =D0=97=D0=B0=D1=85= =D0=B0=D1=80=D0=B5=D0=BD=D0=BA=D0=BE (earwin@gmail.com) Phone: +7 (495) 683-567-4 ICQ: 104465785 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org