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

Directly initialize _ht value with _outAggAccessors.size() in HashAggStage::open

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • QE 2024-04-15

      Small code cleanup - the constructor calls resize anyway

      http://10.1.2.40/mongodb/source/src/mongo/db/exec/sbe/values/row.h#189

      Still need to mark a fix version for this, but it's fairly trivial so I don't think there's any need to backport it. Just ever so slightly reduces the instruction count in the non-blocked hash agg codepath. More of a code cleanup than anything.

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

              Created:
              Updated:
              Resolved: