You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Jakob Homan (JIRA)" <ji...@apache.org> on 2014/01/08 22:34:54 UTC
[jira] [Assigned] (SAMZA-118) Change Partition hashcode to just the
partition number
[ https://issues.apache.org/jira/browse/SAMZA-118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jakob Homan reassigned SAMZA-118:
---------------------------------
Assignee: Jakob Homan
> Change Partition hashcode to just the partition number
> ------------------------------------------------------
>
> Key: SAMZA-118
> URL: https://issues.apache.org/jira/browse/SAMZA-118
> Project: Samza
> Issue Type: Improvement
> Reporter: Jakob Homan
> Assignee: Jakob Homan
> Labels: newbie
> Attachments: SAMZA-118.patch
>
>
> Currently the hashcode function for partition (which is called a lot as part of the container) does the standard, good practice rigamarole of multiplying by a prime, etc. However, the Partition class is just wrapping an int, so we can just use the int directly as the hashcode. Will same some cycles in a tight loop.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)