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

Remove memory usage token from WindowFunctionAddToSet

    • Query Integration
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None

      The window function addToSet uses a std::multimap with an element type of SimpleMemoryUsageTokenWith<Value>. This wrapper is useful for tracking memory in a fairly transparent way using RAII.

      This design seems suboptimal because it means that every element contains a pointer to a memory tracker, and a 64-bit byte count. This memory overhead does not seem worth the tradeoff.

            Assignee:
            Unassigned Unassigned
            Reporter:
            chris.wolff@mongodb.com Chris Wolff
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: