Re: Change GUC hashtable to use simplehash? - Mailing list pgsql-hackers

From Gurjeet Singh
Subject Re: Change GUC hashtable to use simplehash?
Date
Msg-id CABwTF4U_bbDKUKVpuvPLkeFLH51r-co4xWu795CtPrpOF2pTyg@mail.gmail.com
Whole thread Raw
In response to Change GUC hashtable to use simplehash?  (Jeff Davis <pgsql@j-davis.com>)
Responses Re: Change GUC hashtable to use simplehash?
List pgsql-hackers
On Fri, Nov 17, 2023 at 11:02 AM Jeff Davis <pgsql@j-davis.com> wrote:
>
> I had briefly experimented changing the hash table in guc.c to use
> simplehash. It didn't offer any measurable speedup, but the API is
> slightly nicer.
>
> I thought I'd post the patch in case others thought this was a good
> direction or nice cleanup.

This is not a comment on the patch itself, but since GUC operations
are not typically considered performance or space sensitive, this
comment from simplehash.h makes a case against it.

 *      It's probably not worthwhile to generate such a specialized
implementation
 *      for hash tables that aren't performance or space sensitive.

But your argument of a nicer API might make a case for the patch. I

Best regards,
Gurjeet
http://Gurje.et



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: simplehash: preserve consistency in case of OOM
Next
From: Tom Lane
Date:
Subject: Re: Permute underscore separated components of columns before fuzzy matching