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

Reply via email to