Oct 2024

1 commit
Optimize sifting down in binaryheap.
30 Oct 2024Nathan Bossartmaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #41 of 2 reviewers saw the final version

The commit preserves the children-first comparison algorithm from #4 in src/common/binaryheap.c. It retains the original swap_off name, removes the assertion, revises comments, and moves the no-children check into the parent-comparison termination condition.

  • Robert Haassaw an earlier versiontrailerRobert analyzed and endorsed the reduced comparison count in #2, before the child-selection and termination control flow was revised in #4 and the commit.
  • Nathan Bossartsaw the final versioncommittercommitted the patch

Credits across 1 commit

Author
ChangAo Chen1
Reviewer
Nathan Bossartcommitter1
Robert Haas1
Committer
Nathan Bossart1