Re: simplehash: SH_OPTIMIZE_REPEAT for optimizing repeated lookups of the same key

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Nathan Bossart <nathandbossart(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: simplehash: SH_OPTIMIZE_REPEAT for optimizing repeated lookups of the same key
Date: 2023-11-21 18:26:14
Message-ID: 0f8dc156d25f747d7b84cba2ec7d6e8c2379afed.camel@j-davis.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, 2023-11-21 at 08:51 -0800, Andres Freund wrote:
> I am not quite sure this kind of cache best lives in simplehash -
> ISTM that
> quite often it'd be more beneficial to have a cache that you can test
> more
> cheaply higher up.

Yeah. I suppose when a few more callers are likely to benefit we can
reconsider.

Though it makes it easy to test a few other callers, just to see what
numbers appear.

Regards,
Jeff Davis

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Steele 2023-11-21 18:48:59 Re: Add recovery to pg_control and remove backup_label
Previous Message Alvaro Herrera 2023-11-21 18:24:58 Re: Report planning memory in EXPLAIN ANALYZE