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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Minor - P4
    • None
    • Affects Version/s: 2.9.3
    • Component/s: BSON
    • Environment:
      Java
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Unassigned
            Reporter:
            Mark Ponthier
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: