Re: Small optimization with expanding dynamic hash table - Mailing list pgsql-hackers

From wenhui qiu
Subject Re: Small optimization with expanding dynamic hash table
Date
Msg-id CAGjGUA+szjkQvuccCJ2LZu99c6WX_2VY9TYxu9TJZUXSOkvREg@mail.gmail.com
Whole thread Raw
In response to Re: Small optimization with expanding dynamic hash table  ("cca5507" <cca5507@qq.com>)
Responses Re: Small optimization with expanding dynamic hash table
List pgsql-hackers
Hi 
> The v2 patch maybe more clear:
> We can calc bucket just by hashvalue & high_mask when expanding table because the if condition in calc_bucket() must be false.
I think you may add a comment to this path so that code reviewers can clearly see your optimization.

Thanks

On Thu, Jul 10, 2025 at 10:46 AM cca5507 <cca5507@qq.com> wrote:
Hi,

The v2 patch maybe more clear:

We can calc bucket just by hashvalue & high_mask when expanding table because the if condition in calc_bucket() must be false.

--
Regards,
ChangAo Chen

pgsql-hackers by date:

Previous
From: vignesh C
Date:
Subject: Re: Logical Replication of sequences
Next
From: Shinya Kato
Date:
Subject: Re: vacuumlazy: Modernize count_nondeletable_pages