Re: optimize lookups in snapshot [sub]xip arrays

From: John Naylor <john(dot)naylor(at)enterprisedb(dot)com>
To: Nathan Bossart <nathandbossart(at)gmail(dot)com>
Cc: Andres Freund <andres(at)anarazel(dot)de>, John Naylor <jcnaylor(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: optimize lookups in snapshot [sub]xip arrays
Date: 2022-08-03 05:36:20
Message-ID: CAFBsxsGX-4cb9Cfhb5zdMfkTFaFkE_EpSOdS-Oz8gP5zD96paw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Aug 3, 2022 at 6:43 AM Nathan Bossart <nathandbossart(at)gmail(dot)com>
wrote:
> Just under half of the callers in 0002 require the offset, but I don't
know
> if any of those are worth optimizing in the first place. I'll change it
> for now. It's easy enough to add it back in the future if required.

Yeah, some of those callers will rarely have more than several elements to
search in the first place, or aren't performance-sensitive.

--
John Naylor
EDB: http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrey Borodin 2022-08-03 05:53:15 Re: Slow standby snapshot
Previous Message Peter Smith 2022-08-03 05:26:25 Re: PostgreSQL 15 minor fixes in protocol.sgml