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

Evaluate the feasibility of replacing the std::unique_ptr decorations with boost::optional decorations

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Service Arch 2023-04-17, Service Arch 2023-05-01

      When a decorable object is instantiated, the associated DecorationContainer allocates the necessary space for all the decorations at once. However, the codebase currently contains a large number of decorations whose type is a std::unique_ptr. This defeats the purpose of allocating all decorations together and introduces a performance penalty.

      We need to go over all of these decorations and evaluate the feasibility of changing their type from std::unique_ptr to boost::optional.

        1. Decorations.csv
          12 kB
        2. decorations.tar.gz
          19 kB

            Assignee:
            alex.li@mongodb.com Alex Li
            Reporter:
            vojislav.stojkovic@mongodb.com Vojislav Stojkovic
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: