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

Update linux baton to minimize allocations around run

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.9
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • Service Arch 2019-03-11
    • 0

      The linux baton allocates vectors for the session iterators, as well as the pollfd's, for each call to run. Those are unlikely to change dramatically over the course of a baton's life, so saving them on the object and re-using that memory across calls saves on allocations

            Assignee:
            mira.carey@mongodb.com Mira Carey
            Reporter:
            mira.carey@mongodb.com Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: