Shave a few cycles in compare_pathkeys() by checking for pointer-identical
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 28 Feb 2009 03:51:05 +0000 (03:51 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 28 Feb 2009 03:51:05 +0000 (03:51 +0000)
commit9144c1e12224c1615b0df4d5279193ec2da661db
treeace3ee0b5a5fb387b01dbfc361b50b337bba89ec
parente8ea978fbb14ebb1f6cfd064cc44ee28f1952b03
Shave a few cycles in compare_pathkeys() by checking for pointer-identical
input lists before we grovel through the lists.  This doesn't save much,
but testing shows that the case of both inputs NIL is common enough that
it saves something.  And this is used enough to be a hotspot.
src/backend/optimizer/path/pathkeys.c