]> granicus.if.org Git - postgresql/commit
Grab some low-hanging fruit in the new hash index build code.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 17 Mar 2008 03:45:36 +0000 (03:45 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 17 Mar 2008 03:45:36 +0000 (03:45 +0000)
commit0c5962c054557e9a0765dec97f5ed67568ba6df9
tree7f92a17872c8af8f58cfd619e8c17752bd42fa84
parent32846f815265b134b6ec2d20f16bf2d0c9e6f931
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.
src/backend/utils/sort/tuplesort.c