Jakob Homan created SAMZA-106:
---------------------------------

             Summary: Cache hashcode for SystemStreamPartition
                 Key: SAMZA-106
                 URL: https://issues.apache.org/jira/browse/SAMZA-106
             Project: Samza
          Issue Type: Improvement
          Components: container
    Affects Versions: 0.6.0
            Reporter: Jakob Homan
            Assignee: Jakob Homan
             Fix For: 0.7.0


Profiling shows that in jobs that consume lots of partitions (ooto hundreds), a 
large chunk of the main thread's time (31.5%, in my tests) is spent 
recalculating SystemStreamPartitions.  Most of this (26.5%) comes from the 
BlockingEnvelopeMetricsMap.incPoll. Since SSPs are (meant to be) immutable, 
there's no reason to recalculate each time.  We can just do it at object 
creation and return that result.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to