pgsql: Micro-optimization of markpos() and restrpos() in btree and hash

From: neilc(at)svr1(dot)postgresql(dot)org (Neil Conway)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Micro-optimization of markpos() and restrpos() in btree and hash
Date: 2004-11-17 03:13:40
Message-ID: 20041117031340.B19573A40D8@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Micro-optimization of markpos() and restrpos() in btree and hash indexes.
Rather than using ReadBuffer() to increment the reference count on an
already-pinned buffer, we should use IncrBufferRefCount() as it is
faster and does not require acquiring the BufMgrLock.

Modified Files:
--------------
pgsql/src/backend/access/hash:
hash.c (r1.74 -> r1.75)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/hash/hash.c.diff?r1=1.74&r2=1.75)
pgsql/src/backend/access/nbtree:
nbtree.c (r1.121 -> r1.122)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/nbtree/nbtree.c.diff?r1=1.121&r2=1.122)

Browse pgsql-committers by date

  From Date Subject
Next Message Marc G. Fournier 2004-11-17 03:31:58 Re: pgsql: Remove replicaiton FAQ item.
Previous Message Neil Conway 2004-11-17 02:50:07 pgsql: Document a limitation of COPY's new CSV mode.