Re: Improving the heapgetpage function improves performance in common scenarios

From: Quan Zongliang <quanzongliang(at)yeah(dot)net>
To: John Naylor <john(dot)naylor(at)enterprisedb(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Improving the heapgetpage function improves performance in common scenarios
Date: 2023-09-06 09:56:28
Message-ID: 67053df3-8d56-24e2-47c0-ac5d88a7051b@yeah.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2023/9/6 17:07, John Naylor wrote:
>
> On Wed, Sep 6, 2023 at 2:50 PM Quan Zongliang <quanzongliang(at)yeah(dot)net
> <mailto:quanzongliang(at)yeah(dot)net>> wrote:
>
> > If not optimized(--enable-debug CFLAGS='-O0'), there is a clear
> > difference. When the compiler does the optimization, the performance is
> > similar. I think the compiler does a good enough optimization with
> > "pg_attribute_always_inline" and the last two constant parameters when
> > calling heapgetpage_collect.
>
> So as we might expect, more specialization (Andres' patch) has no
> apparent downsides in this workload. (While I'm not sure of the point of
> testing at -O0, I think we can conclude that less-bright compilers will
> show some improvement with either patch.)
>
> If you agree, do you want to withdraw your patch from the commit fest?
>
Ok.
> --
> John Naylor
> EDB: http://www.enterprisedb.com <http://www.enterprisedb.com>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message jian he 2023-09-06 09:56:55 Re: pg_stats and range statistics
Previous Message Ashutosh Sharma 2023-09-06 09:27:11 Can a role have indirect ADMIN OPTION on another role?