[SERVER-45263] Don't use Document::size() to compute how much space to allocate in inclusion projections Created: 19/Dec/19  Updated: 29/Oct/23  Resolved: 06/Jan/20

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 4.3.3

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

Issue Links:
Problem/Incident
Backwards Compatibility: Fully Compatible
Sprint: Query 2019-12-30, Query 2020-01-13
Participants:
Linked BF Score: 0

 Description   

For large-ish documents, Document::size() is more expensive than just allocating a larger buffer up front.



 Comments   
Comment by Githook User [ 03/Jan/20 ]

Author:

{'name': 'Ian Boros', 'email': 'ian.boros@mongodb.com', 'username': 'puppyofkosh'}

Message: SERVER-45263 Don't rely on Document::size when determining space to allocate in inclusion projection
Branch: master
https://github.com/mongodb/mongo/commit/cd9f32036413ea76ce9bf887d57cf32ecd87a7be

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