Re: simplehash: SH_OPTIMIZE_REPEAT for optimizing repeated lookups of the same key - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: simplehash: SH_OPTIMIZE_REPEAT for optimizing repeated lookups of the same key
Date
Msg-id 0f8dc156d25f747d7b84cba2ec7d6e8c2379afed.camel@j-davis.com
Whole thread Raw
In response to Re: simplehash: SH_OPTIMIZE_REPEAT for optimizing repeated lookups of the same key  (Andres Freund <andres@anarazel.de>)
List 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




pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Report planning memory in EXPLAIN ANALYZE
Next
From: David Steele
Date:
Subject: Re: Add recovery to pg_control and remove backup_label