[ 
https://issues.apache.org/jira/browse/LUCENE-1172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12567326#action_12567326
 ] 

Michael McCandless commented on LUCENE-1172:
--------------------------------------------

The above numbers were with the full docs from Wikipedia.  I expect
the optimization to be more effective with smaller docs so I ran test
to index first 10 million small (~ 100 characters) Wikpedia docs.

Trunk took 257.5 sec (best of 3) and patch took 246.9 sec (best of 3)
= 4.1% speedup.

Here's the alg I'm running:

  analyzer=org.apache.lucene.analysis.standard.StandardAnalyzer
  
  doc.maker=org.apache.lucene.benchmark.byTask.feeds.LineDocMaker
  
  docs.file=/Volumes/External/lucene/wikifull100.txt
  doc.stored = true
  doc.term.vector = true
  doc.add.log.step=20000
  
  directory=FSDirectory
  autocommit=false
  compound=false
  
  ram.flush.mb=64
  
  { "Rounds"
  
     ResetSystemErase
  
    { "BuildIndex"
      -CreateIndex
      { "AddDocs" AddDoc > : 10000000
      -CloseIndex
    }
  
    NewRound
  } : 3
  
  RepSumByPrefRound BuildIndex


> Small speedups to DocumentsWriter
> ---------------------------------
>
>                 Key: LUCENE-1172
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1172
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 2.3
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 2.4
>
>         Attachments: LUCENE-1172.patch
>
>
> Some small fixes that I found while profiling indexing Wikipedia,
> mainly using our own quickSort instead of Arrays.sort.
> Testing first 200K docs of Wikipedia shows a speedup from 274.6
> seconds to 270.2 seconds.
> I'll commit in a day or two.

-- 
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]

Reply via email to