pgsql: Avoid unnecessary palloc overhead in _bt_first().

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Avoid unnecessary palloc overhead in _bt_first().
Date: 2005-06-19 22:41:01
Message-ID: 20050619224101.3164C5281F@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Avoid unnecessary palloc overhead in _bt_first(). The temporary
scankeys arrays that it needs can never have more than INDEX_MAX_KEYS
entries, so it's reasonable to just allocate them as fixed-size local
arrays, and save the cost of palloc/pfree. Not a huge savings, but
a cycle saved is a cycle earned ...

Modified Files:
--------------
pgsql/src/backend/access/nbtree:
nbtsearch.c (r1.92 -> r1.93)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/nbtree/nbtsearch.c.diff?r1=1.92&r2=1.93)

Browse pgsql-committers by date

  From Date Subject
Next Message Neil Conway 2005-06-19 23:39:05 pgsql: Minor documentation update for RAISE expression patch.
Previous Message Tom Lane 2005-06-19 22:34:56 pgsql: Need #include <time.h> on some platforms.