[SERVER-82878] Avoid unnecessary copy for vector of variant in IDL Created: 07/Nov/23  Updated: 28/Nov/23  Resolved: 28/Nov/23

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

Type: Task Priority: Major - P3
Reporter: Sean Zimmerman Assignee: Sean Zimmerman
Resolution: Fixed Votes: 0
Labels: milestone-1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Repl 2023-11-13, Repl 2023-11-27, Repl 2023-12-11
Participants:

 Description   

Currently in IDL generated code for a vector of variant of multiple complex objects we parse into a temporary object and then emplace back into a vector. This adds the overhead of an extra copy, we should be moving this temporary object instead



 Comments   
Comment by Githook User [ 28/Nov/23 ]

Author:

{'name': 'seanzimm', 'email': 'sean.zimmerman@mongodb.com', 'username': 'seanzimm'}

Message: SERVER-82878: Make vector<variant> generated code more efficient
Branch: master
https://github.com/mongodb/mongo/commit/9008e8b3d5d1070291fdbe96b6de6d8cb1f0bfb9

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