[ 
http://issues.apache.org/jira/browse/LUCENE-460?page=comments#action_12356326 ] 

Yonik Seeley commented on LUCENE-460:
-------------------------------------

Oh, and preserve entropy by using reversible integer hash functions (see the 
previous link).
 -  key ^= (key << a) | (key >>> b); for a,b in (17,16) (16,17) (14,19) (19,14) 
(13,20) (20,13) (10,23) (23,10) (8,25) (25,8)
 - multiply by an odd
 - addition
 - xor
 - rotates

> hashCode improvements
> ---------------------
>
>          Key: LUCENE-460
>          URL: http://issues.apache.org/jira/browse/LUCENE-460
>      Project: Lucene - Java
>         Type: Improvement
>   Components: Search
>     Versions: CVS Nightly - Specify date in submission
>     Reporter: Yonik Seeley
>     Priority: Minor
>      Fix For: CVS Nightly - Specify date in submission

>
> It would be nice for all Query classes to implement hashCode and equals to 
> enable them to be used as keys when caching.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.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