The layout of NamespaceStringOrUUID is composed of many boost::optional s, as well as one unused boolean, adding up to a 102 byte width. Considering how often this type is used in the server, reducing its width to something that can fit on a cache line should improve overall performance.
- causes
-
SERVER-77640 Remove unnecessary copies caused by NamespaceStringOrUUID interface
- Closed
- is related to
-
SERVER-75529 Revisit memory layout for TenantId, DatabaseName, and NamespaceString to address performance regression
- Closed