[SERVER-81111] Make IDL field serialization check debug only Created: 15/Sep/23  Updated: 03/Nov/23  Resolved: 03/Nov/23

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

Type: Task Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Erin McNulty
Resolution: Fixed Votes: 0
Labels: perf-tiger, perf-tiger-handoff, perf-tiger-triaged
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Service Arch
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2023-10-30, Service Arch 2023-11-13
Participants:

 Description   

When IDL serializes a class to BSON, it checks all the required fields are initialized. This check is a cheap runtime check but a more expensive check in terms of storage. It should be made debug only to save memory since due to padding it can cost up to 8 bytes.



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

Author:

{'name': 'Erin McNulty', 'email': 'erin.mcnulty@mongodb.com', 'username': 'erin2722'}

Message: SERVER-81111: Make IDL field serialization check debug only
Branch: master
https://github.com/mongodb/mongo/commit/5e3f58f8fc016f35f37d22e1200ed5ff0052e5fe

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