[ 
https://issues.apache.org/jira/browse/LUCENE-7261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adrien Grand updated LUCENE-7261:
---------------------------------
    Attachment: MSBRadixSorter.java

[[email protected]] FYI I played with MSB radix sort to see how it compares 
with LSB in terms of performance but LSB outperformed it by about 2x. I am 
attaching the code here in case you want to have a look, it is totally possible 
that the implementation is not optimal...

> 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
>             Fix For: 6.1, master (7.0)
>
>         Attachments: LUCENE-7261.patch, MSBRadixSorter.java
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to