[SERVER-77156] Audit vector copies in query system Created: 15/May/23  Updated: 29/Oct/23  Resolved: 27/May/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Matt Boros Assignee: Matt Boros
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
Assigned Teams:
Query Execution
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.0
Sprint: QO 2023-05-29
Participants:
Linked BF Score: 16

 Description   

After looking through the list of places where we copy vectors in the query system, I've found at least 50 vectors that can be std::move'd rather than copied. I think it would be good to review all of the copies to see how many more can be avoided.



 Comments   
Comment by Githook User [ 26/May/23 ]

Author:

{'name': 'Matt Boros', 'email': 'matt.boros@mongodb.com', 'username': 'mattBoros'}

Message: SERVER-77156 Avoid unnecessary copies in query system
Branch: master
https://github.com/mongodb/mongo/commit/197fbc88eb12c586ad1803435c9194d80a23b371

Generated at Thu Feb 08 06:34:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.