-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Execution Team 2021-10-18, Execution Team 2021-11-01
-
100
SERVER-58949 increased the size of RecordId from 16 bytes to 32 and added a ConstSharedBuffer member that made the type no longer trivially copiable.
This caused some performance regressions in hot code paths. Reduce the number of RecordId copies required in these code paths by passing references and moving where able.
These hot paths include, but are not limited to: validation, index builds, and collection scans