Remove one pointer indirection for SBE $group key accesses

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • 9.1.0-rc0, 9.1.0-rc1022
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      flat_hash_map is recommended over node_hash_map by absl. This avoids a pointer indirection when accessing keys.

      When the hash table has more than 50% utilization (the common case, given resize is triggered at 87.5% utilization), we use less memory (solve for utilFraction in 8*capacity + 16*utilFraction = 16*capacity).

      checkMemoryUsageAndSpillIfNecessary already does not account for the 8 byte MaterializedRow pointer in _ht, so we don't need to change it here.

            Assignee:
            Evan Bergeron
            Reporter:
            Evan Bergeron
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: