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

Make ValueUnorderedSet an absl::flat_hash_set

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 8.1.0-rc0, 8.0.0-rc5
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • Fully Compatible
    • v8.0
    • QE 2024-05-13

      On first read, it seems all users do not rely on pointer stability. Value is 16 bytes (see the static assert under its definition), so if the container is more than half full, it will use fewer overall bytes. Since these containers typically float between 0.4375 and 0.875 (per the documentation), this seems like a clear win.

            Assignee:
            evan.bergeron@mongodb.com Evan Bergeron
            Reporter:
            evan.bergeron@mongodb.com Evan Bergeron
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: