Re: Reduce TupleHashEntryData struct size by half - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: Reduce TupleHashEntryData struct size by half
Date
Msg-id ee3ae05c7a2cf166d75c01508185ad093ca693be.camel@j-davis.com
Whole thread Raw
In response to Re: Reduce TupleHashEntryData struct size by half  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-hackers
On Sat, 2025-03-22 at 09:39 -0700, Jeff Davis wrote:
> For some reason I'm getting a decline of about 3% in the c.sql test
> that seems to be associated with the accessor functions, even when
> inlined. I'm also not seeing as much benefit from the inlining of the
> MemoryContextMemAllocated(). But these mixed test results are minor
> compared with the memory savings of 35% and the more consistently-
> improved performance of 5% on the larger test (which is also
> integers),
> so I plan to commit it.

Committed, except for v9-0007. (Note that some commits were combined;
they were only separated originally for performance testing.)

I attached a new version of v9-0007, now v10-0001, that uses
recurse=false for two of the memory contexts. I didn't see a major
speedup, but posting here anyway.

Regards,
    Jeff Davis


Attachment

pgsql-hackers by date:

Previous
From: Alena Rybakina
Date:
Subject: Re: Vacuum statistics
Next
From: Ashutosh Bapat
Date:
Subject: Re: Reducing memory consumed by RestrictInfo list translations in partitionwise join planning