Avoid unnecessary copies for ClusterQueryResult data

XMLWordPrintableJSON

    • Query Execution
    • Fully Compatible
    • QE 2025-09-29
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The constructor of ClusterQueryResult currently copies its arguments.
      Also, its getResult() and getShardId() methods always return a copy of the data here and here.

      We can avoid a few copies by making the constructor move the parameters into the member variables in the initializer list, and by making the function return references to the data members.

            Assignee:
            Jan Steemann
            Reporter:
            Jan Steemann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: