Avoid unnecessary string copies in Resource Consumption metrics

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.1.0-rc0, 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • Execution Team 2022-07-11
    • 100
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      It seems that the api to increment metrics requires a full string value even though the string is only used for debug logging

      This leads to callers needing to construct temporary strings that will allocate and deallocate from the heap immediately afterwards.

      Ideally this should be replaced by a StringData object to avoid memory allocations plus copying.

            Assignee:
            Jordi Olivares Provencio
            Reporter:
            Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: