pgsql: Shave a few cycles in compare_pathkeys() by checking for - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Shave a few cycles in compare_pathkeys() by checking for
Date
Msg-id 20090228035105.40FED7559ED@cvs.postgresql.org
Whole thread Raw
List 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)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Reduce the maximum value of vacuum_cost_delay and
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix buffer allocations in encoding conversion routines so that