ExportXMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.1.0-rc0, 9.1.0-rc1022
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • QE 2026-08-31
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Avoid repeated fieldname length calculation in BSONObjBuilder's appendElementsUnique(). The loops that iterates over the object with the to-be-added fields calls fieldName() on each BSONElement. This only returns a const char* pointer without the field name length. This leads to the creation of an std::string temporary and the repeated calculation of the field name length. Both can be avoided by calling fieldNameStringData() on the underlying BSONElement.

            Assignee:
            Jan Steemann
            Reporter:
            Jan Steemann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: