Skip site navigation (1) Skip section navigation (2)

minor restrpos / markpos optimization

From: Neil Conway <neilc(at)samurai(dot)com>
To: pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: minor restrpos / markpos optimization
Date: 2004-11-17 00:20:02
Message-ID: 1100650802.9430.7.camel@localhost.localdomain (view raw or flat)
Thread:
Lists: pgsql-patches
This patch makes a minor optimization to the restrpos() and markpos()
implementations for btree and hash: to bump the reference count on a
buffer, it is more efficient to use IncrBufferRefCount() than to do a
ReadBuffer (for one thing we needn't acquire the BufMgrLock; we also
don't need to do a hash table lookup etc.)

Barring any objections I will apply to HEAD before end of day.

-Neil


Attachment: readbuffer-opt-1.patch
Description: text/x-patch (2.0 KB)

Responses

pgsql-patches by date

Next:From: Andrew DunstanDate: 2004-11-17 00:46:37
Subject: docs patch - CSV import limitation
Previous:From: Tom LaneDate: 2004-11-17 00:18:10
Subject: Re: Win32 signals & sockets

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group