Re: [Patch] Build the heap more efficient in tuplesort.c

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: cca5507 <cca5507(at)qq(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: [Patch] Build the heap more efficient in tuplesort.c
Date: 2025-11-30 23:21:01
Message-ID: CAApHDvoDVU8QW3+31QAJ-owfD4=pJPFRDVtOS=QrBXrU2+26sA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, 30 Nov 2025 at 22:36, cca5507 <cca5507(at)qq(dot)com> wrote:
> Now we build the heap by using tuplesort_heap_insert(), which has a sift-up every call.
>
> To make it more efficient, I want to add tuplesort_heap_insert_unordered() and tuplesort_heap_build()
> just like binaryheap_add_unordered() and binaryheap_build().
>
> Thoughts?

For performance patches, you should include example workloads that
your patch speeds up. Include benchmark results with and without your
patch. Demonstrate you've not regressed any other workloads at the
expense of the ones you intend to speed up.

It's not up to reviewers to do this for you.

David

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hayato Kuroda (Fujitsu) 2025-12-01 00:58:33 RE: [buildfarm related] Machines gcc experimental failed test_lfind
Previous Message Jelte Fennema-Nio 2025-11-30 22:57:12 Re: Early December Commitfest app release