Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-4725 Reduce framework overhead in Go SDK
  3. BEAM-6498

Consider using sync/atomic for Go SDK metrics.

Details

    • Sub-task
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • Not applicable
    • Not applicable
    • sdk-go
    • None

    Description

      Changing a portion of the metrics code to use the atomic counters might yield a performance improvement and the opportunity to remove a lock or two.

      Care needs to be taken though: https://stackoverflow.com/questions/47445344/is-there-a-difference-in-go-between-a-counter-using-atomic-operations-and-one-us

      The outcome of this task is a benchmark demonstrating the benefit (or detriment) in a quasi-real situation for the Go SDK, and if warranted switching metrics where possible, to use atomics.

      Attachments

        Activity

          People

            lostluck Robert Burke
            lostluck Robert Burke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: