SERVER-138014In Code Review

Optimize BSONObj iterators and getField using TrustedInitTag

Optimize {{BSONObjStlIterator}}, {{BSONObjIterator}}, and {{BSONObj::getField}} in {{src/mongo/bson/bsonobj.h}} and {{src/mongo/bson/bsonobj.cpp}} using {{BSONElement::_elementSizeData}}, {{_valuesizeForType}}, and {{TrustedInitTag}}. Made with [Cursor|https://cursor.com]

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.