Grab some low-hanging fruit in the new hash index build code.

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

Commit: 0c5962c054557e9a0765dec97f5ed67568ba6df9
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-03-17T03:45:36Z
Releases: 8.4.0
Grab some low-hanging fruit in the new hash index build code.
oprofile shows that a nontrivial amount of time is being spent in
repeated calls to index_getprocinfo, which really only needs to be
called once.  So do that, and inline _hash_datum2hashkey to make it
work.

Files

PathChange+/−
src/backend/utils/sort/tuplesort.c modified +15 −4