Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-5786

Improve bson serialization by avoiding redundant array copies

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.5.0
    • Affects Version/s: None
    • Component/s: BSON
    • 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@mongodb.com Evan Darke
            Reporter:
            evan.darke@mongodb.com Evan Darke
            Slav Babanin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: