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

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: pgsql: Reduce branches in heapgetpage()'s per-tuple loop
Дата
Msg-id 20240407172615.cocrsvboqm3ttqe4@awork3.anarazel.de
обсуждение исходный текст
Ответ на Re: pgsql: Reduce branches in heapgetpage()'s per-tuple loop  (Melanie Plageman <melanieplageman@gmail.com>)
Список pgsql-committers
Hi,

On 2024-04-07 09:14:57 -0400, Melanie Plageman wrote:
> 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.

Oops. That name was so ingrained in my head that despite looking over these
lines quite a few times, I couldn't spot that.

Will send an update to the thread.

Greetings,

Andres Freund



В списке pgsql-committers по дате отправления:

Предыдущее
От: Melanie Plageman
Дата:
Сообщение: Re: pgsql: Use bump memory context for tuplesorts
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: [MASSMAIL] pgsql: Don't clobber test exit code at cleanup in LDAP/Kerberors tests