pgsql: Shave a few cycles in compare_pathkeys() by checking for

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Shave a few cycles in compare_pathkeys() by checking for
Date: 2009-02-28 03:51:05
Message-ID: 20090228035105.40FED7559ED@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/src/backend/optimizer/path:
pathkeys.c (r1.96 -> r1.97)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/path/pathkeys.c?r1=1.96&r2=1.97)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2009-02-28 18:49:42 pgsql: Fix buffer allocations in encoding conversion routines so that
Previous Message Tom Lane 2009-02-28 00:10:52 pgsql: Reduce the maximum value of vacuum_cost_delay and