Improve bson serialization by avoiding redundant array copies

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.5.0
    • Affects Version/s: None
    • Component/s: BSON, Performance
    • None
    • Java Drivers
    • Not Needed
    • 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. 

              Assignee:
              Evan Darke
              Reporter:
              Evan Darke
              Slav Babanin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: