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

Change SerializationOptions to a const ref

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • QO 2023-07-24, QO 2023-08-07
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

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

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None