[
https://issues.apache.org/jira/browse/SAMZA-118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jakob Homan updated SAMZA-118:
------------------------------
Attachment: SAMZA-118.patch
Quick patch.
> 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
> 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)