Refactor ConcurrentSharedValuesMap to use immutable map

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • 3
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Right now the class relies on using an atomic shared_ptr. On every update the map gets copied and the update is performed on the copy, then the new map is wrapped in a shared_ptr and swapped with the old one.

      This use-case is quite similar to the one provided by our immutable maps so it should be quite simple to replace it. This would also help remove usage of the atomic shared_ptr functions as they are deprecated as of C++20 and the replacement is more or less banned in the server codebase.

              Assignee:
              Unassigned
              Reporter:
              Jordi Olivares Provencio
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: