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