Reduce one comparison in binaryheap's sift down

From: cca5507 <cca5507(at)qq(dot)com>
To: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Reduce one comparison in binaryheap's sift down
Date: 2024-10-28 15:21:39
Message-ID: tencent_0142D8DA90940B9930BCC08348BBD6D0BB07@qq.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I think we can reduce&nbsp;one comparison in binaryheap's sift down, right?

Here is a patch to fix it.

--
Regards,
ChangAo Chen

Attachment Content-Type Size
v1-0001-Reduce-one-comparison-in-binaryheap-s-sift-down.patch application/octet-stream 2.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2024-10-28 15:30:26 Re: Avoid possible overflow (src/port/bsearch_arg.c)
Previous Message Peter Eisentraut 2024-10-28 15:20:42 Proper object locking for GRANT/REVOKE