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

Move absl::HashOf() off the hot path where it is only used for error messages

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • 35

      Noticed while investigating some performance changes caused by SERVER-79736 with erin.zhu@mongodb.com, we noticed that this local variable is only used in the catch block, so should be moved there.

      It didn't seem to make much of a performance difference, but would be good to do anyway for clarity.

            Assignee:
            charlie.swanson@mongodb.com Charlie Swanson
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: