Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-12494

Implement findRightSiblingByName() directly in mutablebson::Element

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.5
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible

      Description

      Even in update benchmarks involving very simple documents, a fair amount of time is spent in mutablebson::Element::operator[](const StringData&). Right now, this is implemented in terms of implementation-agnostic algorithms, that lead to high costs from copies. Since even algorithmic improvements to this hot behavior will involve adding this method to Element anyways, we should do it now, and see if simple copy elisions that result improve performance.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: