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

Implement findRightSiblingByName() directly in mutablebson::Element

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.5
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible

      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.

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

              Created:
              Updated:
              Resolved: