You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2016/04/28 15:08:12 UTC

[jira] [Created] (LUCENE-7261) Speed up LSBRadixSorter

Adrien Grand created LUCENE-7261:
------------------------------------

             Summary: Speed up LSBRadixSorter
                 Key: LUCENE-7261
                 URL: https://issues.apache.org/jira/browse/LUCENE-7261
             Project: Lucene - Core
          Issue Type: Improvement
            Reporter: Adrien Grand
            Assignee: Adrien Grand
            Priority: Minor


Currently it always does 4 passes over the data (one per byte, since ints have 4 bytes). However, most of the time, we know {{maxDoc}}, so we can use this information to do fewer passes when they are not necessary. For instance, if maxDoc is less than or equal to 2^24, we only need 3 passes, and if maxDoc is less than or equals to 2^16, we only need two passes.



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