You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Radim Kolar (JIRA)" <ji...@apache.org> on 2012/12/28 23:38:12 UTC
[jira] [Commented] (YARN-297) Improve hashCode implementations for
PB records
[ https://issues.apache.org/jira/browse/YARN-297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13540617#comment-13540617 ]
Radim Kolar commented on YARN-297:
----------------------------------
You also use initial (seed) value 1 or -1. Best is to use different prime per class.
> 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
>
> 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