Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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)

pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group