-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: BSON
-
None
-
Java Drivers
-
None
-
None
-
None
-
None
-
None
-
None
The BasicOutputBuffer inherits several suboptimal methods from OutputBuffer. Namely, toByteArray() copies the buffer once into a ByteArrayOutputStream and then again into a byte array. Similarly, ObjectIDs can be written to byteBuffers without an intermediate buffer.