Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 52216 invoked from network); 9 Dec 2008 14:21:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Dec 2008 14:21:13 -0000 Received: (qmail 82208 invoked by uid 500); 9 Dec 2008 14:21:23 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 82149 invoked by uid 500); 9 Dec 2008 14:21:23 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 82140 invoked by uid 99); 9 Dec 2008 14:21:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2008 06:21:23 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2008 14:21:09 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 62147234C2B4 for ; Tue, 9 Dec 2008 06:20:46 -0800 (PST) Message-ID: <950687574.1228832446400.JavaMail.jira@brutus> Date: Tue, 9 Dec 2008 06:20:46 -0800 (PST) From: "Marvin Humphrey (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for sorted searches In-Reply-To: <1048762138.1228783424171.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654805#action_12654805 ] Marvin Humphrey commented on LUCENE-1483: ----------------------------------------- > Quick micro bench - did it twice and both times came out 17% slower. I'd guess that all the OO construction/destruction costs in this part of your patch are slowing things down. {code} + Searchable[] searchers = new Searchable[readers.length]; + for(int i = 0; i < readers.length; i++) { + searchers[i] = new IndexSearcher(readers[i]); + } + + MultiSearcher multiSearcher = new MultiSearcher(searchers); + return multiSearcher.search(weight, filter, nDocs, sort); {code} > Change IndexSearcher to use MultiSearcher semantics for sorted searches > ----------------------------------------------------------------------- > > Key: LUCENE-1483 > URL: https://issues.apache.org/jira/browse/LUCENE-1483 > Project: Lucene - Java > Issue Type: Improvement > Affects Versions: 2.9 > Reporter: Mark Miller > Priority: Minor > Attachments: LUCENE-1483.patch > > > Here is a quick test patch. FieldCache for sorting is done at the individual IndexReader level and reloading the fieldcache on reopen can be much faster as only changed segments need to be reloaded. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org