Avoid unnecessary palloc overhead in _bt_first(). The temporary

Tom Lane <tgl@sss.pgh.pa.us>

Commit: d961a568996648b62e1bf18a8b3840aa61a3b4e8
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-06-19T22:41:00Z
Releases: 8.1.0
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 ...

Files

PathChange+/−
src/backend/access/nbtree/nbtsearch.c modified +4 −21