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

Update linux baton to minimize allocations around run

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.1.9
    • Internal Code
    • None
    • Fully Compatible
    • Service Arch 2019-03-11
    • 0

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              jason.carey@mongodb.com Jason Carey
              jason.carey@mongodb.com Jason Carey
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: