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

Implement findRightSiblingByName() directly in mutablebson::Element

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 2.5.5
    • None
    • None
    • 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

            andrew.morrow@mongodb.com Andrew Morrow
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: