Avoid unnecessary StringData->char*->StringData conversion

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Query Execution
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      `_parseAreOpsCrudOnly()` currently converts field names from `StringData` to `const char*` and then back to `StringData` values. This is a pessimization as the original `StringData` value was already computed, and creating a `StringData` from a `const char*` requires an unnecessary recalculation of the string length.
      This can be avoided by going with the originally computed `StringData` value.

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

              Created:
              Updated:
              Resolved: