simplehash: SH_OPTIMIZE_REPEAT for optimizing repeated lookups of the same key

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: simplehash: SH_OPTIMIZE_REPEAT for optimizing repeated lookups of the same key
Date: 2023-11-21 02:12:47
Message-ID: cae37242f236ef2f586384681f77c6ae05fa59e0.camel@j-davis.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Patch attached.

The caller could do something similar, so this option is not necessary,
but it seems like it could be generally useful. It speeds things up for
the search_path cache (and is an alternative to another patch I have
that implements the same thing in the caller).

Thoughts?

Regards,
Jeff Davis

Attachment Content-Type Size
0001-Add-SH_OPTIMIZE_REPEAT-option-to-simplehash.h.patch text/x-patch 2.9 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2023-11-21 02:13:01 Re: About #13489, array dimensions and CREATE TABLE ... LIKE
Previous Message Bruce Momjian 2023-11-21 02:07:36 Re: About #13489, array dimensions and CREATE TABLE ... LIKE