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

Move values inside InMemIterator::next()

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Execution Team 2019-08-26

      There is a simple optimization opportunity to move, rather than copy, elements when popping them from the deque in the InMemIterator. The value returned from "_data.front()" is copied, and then the original is immediately destructed with a call to "pop_front()", which does not return the element.

            Assignee:
            louis.williams@mongodb.com Louis Williams
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: