[CDRIVER-1375] Replace more bson_copy_to calls with bson_reserve_buffer Created: 13/Jul/16  Updated: 28/Feb/23

Status: Backlog
Project: C Driver
Component/s: libmongoc, Performance
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

There are more opportunities to avoid copying replies, beyond CDRIVER-1215. E.g., mongoc_collection_find_and_modify_with_opts copies its reply to the caller-supplied bson_t pointer. Instead it could reserve space in the caller-supplied bson_t and read the server reply directly into it without copying.


Generated at Wed Feb 07 21:12:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.