Robert Burke created BEAM-6541:
----------------------------------

             Summary: Consider converting bundle & ptransform ids to ints 
eagerly.
                 Key: BEAM-6541
                 URL: https://issues.apache.org/jira/browse/BEAM-6541
             Project: Beam
          Issue Type: Sub-task
          Components: sdk-go
            Reporter: Robert Burke


BundleIDs and PTransformIDs necessary for communicating with the Runner 
interface in the go SDK are currently strings, and used as is for metrics 
contexts. We use them for getting bundle & ptransform specific metrics, and 
transmitting the same. We could instead eagerly assign them a local index that 
is then converted out when communicating metrics over the FnAPI, this would 
reduce overhead on metric lookups in the various maps.

Note: the same could be done for the user's metric-name, completing the 
optimization. Measuring the per-report overhead for tentative/final metric 
reporting is required before committing to this approach.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to