Re: pgsql: Reduce branches in heapgetpage()'s per-tuple loop - Mailing list pgsql-committers

From Melanie Plageman
Subject Re: pgsql: Reduce branches in heapgetpage()'s per-tuple loop
Date
Msg-id CAAKRu_ZXtWKCE-7XC5pJchUXRe9kQZmgX-NQjnc3BnO=nHRhrA@mail.gmail.com
Whole thread Raw
In response to [MASSMAIL]pgsql: Reduce branches in heapgetpage()'s per-tuple loop  (Andres Freund <andres@anarazel.de>)
Responses Re: pgsql: Reduce branches in heapgetpage()'s per-tuple loop
List pgsql-committers
On Sun, Apr 7, 2024 at 3:29 AM Andres Freund <andres@anarazel.de> wrote:
>
> Reduce branches in heapgetpage()'s per-tuple loop
>
> Until now, heapgetpage()'s loop over all tuples performed some conditional
> checks for each tuple, even though condition did not change across the loop.

I haven't reviewed exactly what this does, but heapgetpage() was
removed (or split into two functions, rather) in 44086b097537, so I
find the naming of this function, or, at least the comments, commit
message and description a bit confusing.

- Melanie



pgsql-committers by date:

Previous
From: David Rowley
Date:
Subject: pgsql: Use bump memory context for tuplesorts
Next
From: Thomas Munro
Date:
Subject: pgsql: Use streaming I/O in sequential scans.