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

Yonik Seeley commented on LUCENE-4690:
--------------------------------------

An additional cool little hack... even though it's much improved, IDIV still 
has a latency of 18-42 cycles on a core2 processor.  One equivalent of i/7 is 
(i*37)>>8 for i in 0..63.  This only takes 4 cycles.
                
> remove hashing from NumericUtils.*ToPrefixCoded 
> ------------------------------------------------
>
>                 Key: LUCENE-4690
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4690
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Yonik Seeley
>
> As far as I can tell nothing actually uses the hash codes generated by these 
> methods (not even any tests).  If someone did want to generate a hash, it 
> would be just as fast to do it on the BytesRef after the fact (or even faster 
> from the input number itself).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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