[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: |