From dev-return-201472-apmail-lucene-dev-archive=lucene.apache.org@lucene.apache.org Thu Apr 2 15:29:00 2015 Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 63B4317245 for ; Thu, 2 Apr 2015 15:29:00 +0000 (UTC) Received: (qmail 6102 invoked by uid 500); 2 Apr 2015 15:28:53 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 6025 invoked by uid 500); 2 Apr 2015 15:28:53 -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 6014 invoked by uid 99); 2 Apr 2015 15:28:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2015 15:28:53 +0000 Date: Thu, 2 Apr 2015 15:28:53 +0000 (UTC) From: "Paul Elschot (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LUCENE-6388) Optimize SpanNearQuery 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-6388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14392831#comment-14392831 ] Paul Elschot commented on LUCENE-6388: -------------------------------------- Oops, I thought by now ArrayList would be JIT-ed away, thanks. Also the UOE's in the NearSpansOrdered payload methods have gone in this patch, I had put these in to check the tests. > Optimize SpanNearQuery > ---------------------- > > Key: LUCENE-6388 > URL: https://issues.apache.org/jira/browse/LUCENE-6388 > Project: Lucene - Core > Issue Type: Improvement > Reporter: Robert Muir > Attachments: LUCENE-6388.patch > > > After the big spans overhaul in LUCENE-6308, we can speed up SpanNearQuery a little more: > * SpanNearQuery defaults to collectPayloads=true, but this requires a slower implementation, for an uncommon case. Use the faster no-payloads impl if the field doesn't actually have any payloads. > * Use a simple array of Spans rather than List in NearSpans classes. This is iterated over often in the logic. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org