Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-7397

Avoid String.format in state namespace construction

Details

    • Improvement
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • None
    • 2.14.0
    • runner-core
    • None

    Description

      I've noticed that for jobs that access state frequently, a percent or two of overall CPU time is actually spent calculating the state namespace name.

      StateNamespaces.java uses a String.format for the window namespaces, but could simply use a string concatenation to do the same thing with much less overhead. 

      Attachments

        Issue Links

          Activity

            People

              SteveNiemitz Steve Niemitz
              SteveNiemitz Steve Niemitz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h