]> granicus.if.org Git - postgresql/commit
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)
commit21eb6aeb36b691b2b57d8a1445c665330b669552
tree456732cf430bc85ce7af52c68f08e5753e230c2b
parent640796ff4122c01ab96780cbbee88479c3694907
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