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

Change SerializationOptions to a const ref

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • QO 2023-07-24, QO 2023-08-07

    Description

      SerializationOptions is passed by value because the struct was originally so small, the cost was insignificant. Now that it has grown so much, it makes sense to pass it as a const ref. In places where SerializationOptions needs to be updated/changed, we can just create a new instance.

      Attachments

        Activity

          People

            maddie.zechar@mongodb.com Maddie Zechar
            maddie.zechar@mongodb.com Maddie Zechar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: