[SERVER-72103] Reduce memory allocations in BSONElementIterator Created: 14/Dec/22  Updated: 29/Oct/23  Resolved: 20/Jan/23

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

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

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Participants:
Linked BF Score: 105

 Description   

BSONElementIterator reallocates sub iterators while traversing the BSONObj. We should be able to reduce the amount of allocations by re-using previously allocated memory when traversing at the same level.



 Comments   
Comment by Githook User [ 17/Jan/23 ]

Author:

{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-72103 Reduce the number of memory allocations in BSONElementIterator
Branch: master
https://github.com/mongodb/mongo/commit/a2f874c89bbcc4944620863039aad27a58dd28a6

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