Great, because that's prob the main optimation spot we have. I also made things a bit difficult with the 50 merge factory. I'll try a 10 later.

- Mark


On Dec 9, 2008, at 9:20 AM, "Marvin Humphrey (JIRA)" <[EMAIL PROTECTED]> wrote:


[ 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to