Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-67102

Avoid unnecessary string copies in Resource Consumption metrics

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.1.0-rc0, 6.2.0-rc0
    • None
    • None
    • Fully Compatible
    • Execution Team 2022-07-11
    • 100

    Description

      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.

      Attachments

        Activity

          People

            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: