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

Radim Kolar commented on YARN-297:
----------------------------------

bigger numbers will give hashCodes larger spread and it will less likely to 
generate collision if you sum hashCodes.

look at source code for java.lang.ThreadLocal
                
> Improve hashCode implementations for PB records
> -----------------------------------------------
>
>                 Key: YARN-297
>                 URL: https://issues.apache.org/jira/browse/YARN-297
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: Arun C Murthy
>            Assignee: Xuan Gong
>         Attachments: YARN.297.1.patch
>
>
> As [~hsn] pointed out in YARN-2, we use very small primes in all our hashCode 
> implementations.

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

Reply via email to