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

Uwe Schindler commented on LUCENE-3654:
---------------------------------------

bq. can we have some -DXX:LuceneUseUnsafe option to enable this. I mean there 
are two camps here and that could make everybody happy? I mean if you use this 
option you have to expect possible problems no?

We can put the whole comparator to contrib and BytesRef can have a static 
setter to change the default impl. Or we use SPI for it (contrib exports it in 
META-INF) :-)
                
> Optimize BytesRef comparator to use Unsafe long based comparison (when 
> possible)
> --------------------------------------------------------------------------------
>
>                 Key: LUCENE-3654
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3654
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: core/index, core/search
>            Reporter: Shay Banon
>         Attachments: LUCENE-3654.patch
>
>
> Inspire by Google Guava UnsignedBytes lexi comparator, that uses unsafe to do 
> long based comparisons over the bytes instead of one by one (which yields 
> 2-4x better perf), use similar logic in BytesRef comparator. The code was 
> adapted to support offset/length.

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