bright chen created APEXMALHAR-2127:
---------------------------------------
Summary: Cache timeBucket for each window
Key: APEXMALHAR-2127
URL: https://issues.apache.org/jira/browse/APEXMALHAR-2127
Project: Apache Apex Malhar
Issue Type: Improvement
Reporter: bright chen
Priority: Minor
Each calling of
org.apache.apex.malhar.lib.state.managed.ManagedStateImpl.put(long, Slice,
Slice) will get the timeBucket from TimeBucketAssigner. Could we cache
timeBucket for each window due to:
- TimeBucketAssigner.getTimeBucketFor(long) is not so light as it need to get
the lock
- TimeBucketAssigner.getTimeBucketFor(long) only depended on time which is
same in one window.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)