Jakob Homan created SAMZA-118:
---------------------------------
Summary: 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
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)