pgsql: Avoid unnecessary palloc overhead in _bt_first(). - Mailing list pgsql-committers

From tgl@svr1.postgresql.org (Tom Lane)
Subject pgsql: Avoid unnecessary palloc overhead in _bt_first().
Date
Msg-id 20050619224101.3164C5281F@svr1.postgresql.org
Whole thread Raw
List 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)

pgsql-committers by date:

Previous
From: tgl@svr1.postgresql.org (Tom Lane)
Date:
Subject: pgsql: Need #include on some platforms.
Next
From: neilc@svr1.postgresql.org (Neil Conway)
Date:
Subject: pgsql: Minor documentation update for RAISE expression patch.