Re: Make tuple deformation faster - Mailing list pgsql-hackers

From David Rowley
Subject Re: Make tuple deformation faster
Date
Msg-id CAApHDvq5ygT12jyfpj_JuSZ8T9-QtE9LhCsC51mELbbs__uVfA@mail.gmail.com
Whole thread Raw
In response to Re: Make tuple deformation faster  (Jeff Davis <pgsql@j-davis.com>)
Responses Re: Make tuple deformation faster
List pgsql-hackers
On Wed, 5 Mar 2025 at 08:48, Jeff Davis <pgsql@j-davis.com> wrote:
> I happened to run into the code and was surprised to see a strongly-
> worded comment about the size of CompactAttribute, but then also see
> independent booleans rather than flags or bitfields.
>
> Did the discussion end here, or was there some kind of conclusion? Is
> it worth adding a comment about why we use independent booleans, even
> if we don't have a complete answer?

I must have either forgotten to try that, or I tried it and wrote it
off and forgot to document it.

Anyway, I've now benchmarked using bitfields on the same 3 machines
that I used last time. There are certainly some cases where it's
faster with the bitfields, but it's mainly slower.

I've attached the results. The 3990x with clang looks good, but the
rest are mostly slower.

David

Attachment

pgsql-hackers by date:

Previous
From: Bertrand Drouvot
Date:
Subject: Re: Add contrib/pg_logicalsnapinspect
Next
From: Michael Paquier
Date:
Subject: Re: Add regression test checking combinations of (object,backend_type,context) in pg_stat_io