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

Hash C++ data structures directly rather than building BSONObj

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • QO 2023-08-21
    • 5

      To compute the query stats key hash, we build an intermediate BSON object and hash that. This is showing up in our flame graphs, and we can probably avoid some of the intermediate state and associated overhead and memory allocations by just directly supporting a custom hash operator of some of the same things.

      To limit the complexity of the patch, this ticket will track the work for all the components of the commands (think readConcern, comment, etc) but not the MatchExpression tree and associated ASTs.

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

              Created:
              Updated:
              Resolved: