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

Java driver (and other drivers too) create new java String instances each time a field CStr is encountered

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.9.3
    • BSON
    • Java
    • Fully Compatible

    Description

      New java String instances are created for each field CStr encountered. This enhancement would construct field CStr instances only once and return the previously constructed instance on subsequent invocations. My early performance analysis indicates a decoding performance improvement of 7% while also reducing memory consumption and as a result also enhances performance via reduced garbage collection.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pwhitney@firescope.com Mark Ponthier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: