Speed up SegementDocsEnum by making it more friendly for JIT optimizations
--------------------------------------------------------------------------

                 Key: LUCENE-3648
                 URL: https://issues.apache.org/jira/browse/LUCENE-3648
             Project: Lucene - Java
          Issue Type: Improvement
          Components: core/codecs, core/search
    Affects Versions: 4.0
            Reporter: Simon Willnauer
             Fix For: 4.0


Since we moved the bulk reading into the codec ie. make all  bulk reading codec 
private in LUCENE-3584 we have seen some performance 
[regression|http://people.apache.org/~mikemccand/lucenebench/Term.html] on 
different CPUs. I tried to optimize the implementation to make it more eligible 
for runtime optimizations, tried to make loops JIT friendly by moving out 
branches where I can, minimize member access in all loops, use final members 
where possible and specialize the two common cases With & Without LiveDocs.

I will attache a patch and my benchmark results in a minute.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to