-
Type: Improvement
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: BSON
-
None
The raw BSON deserializer currently represents an ObjectId via its extended JSON format, which formats the bytes as a hex-encoded string. We could improve performance by instead representing the bytes as a borrowed buffer, similar to what we do for generic subtype Binary. We'll need to keep using a signifier though to differentiate ObjectId from Binary, perhaps $oidBytes or simply re-use $oid.