Re: Small optimization with expanding dynamic hash table

From: cca5507 <cca5507(at)qq(dot)com>
To: Rahila Syed <rahilasyed90(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Small optimization with expanding dynamic hash table
Date: 2025-07-10 02:45:44
Message-ID: tencent_371D9ECFC197DD7DA86AE1526D59CAB8CC06@qq.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

The v2 patch maybe more clear:

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

--
Regards,
ChangAo Chen

Attachment Content-Type Size
v2-0001-Small-optimization-with-expanding-dynamic-hash-ta.patch application/octet-stream 855 bytes

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Richard Guo 2025-07-10 03:05:25 Re: Why our Valgrind reports suck
Previous Message Noah Misch 2025-07-10 02:24:44 Re: Can can I make an injection point wait occur no more than once?