Hash C++ data structures directly rather than building BSONObj

XMLWordPrintableJSON

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

      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
            Reporter:
            Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: