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

From [email protected] (Tom Lane)
Subject pgsql: Avoid unnecessary palloc overhead in _bt_first().
Date
Msg-id [email protected]
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: [email protected] (Tom Lane)
Date:
Subject: pgsql: Need #include on some platforms.
Next
From: [email protected] (Neil Conway)
Date:
Subject: pgsql: Minor documentation update for RAISE expression patch.