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

pgsql: Marginal performance hack: avoid unnecessary work in

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Marginal performance hack: avoid unnecessary work in
Date: 2007-04-30 00:14:54
Message-ID: 20070430001454.5F8E99FA5C8@postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Marginal performance hack: avoid unnecessary work in expression_tree_mutator.
We can just palloc, instead of using makeNode, when we are going to
overwrite the whole node anyway in the FLATCOPY macro.  Also, use
FLATCOPY instead of copyObject for common node types Var and Const.

Modified Files:
--------------
    pgsql/src/backend/optimizer/util:
        clauses.c (r1.242 -> r1.243)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/util/clauses.c.diff?r1=1.242&r2=1.243)

pgsql-committers by date

Next:From: Tom LaneDate: 2007-04-30 00:16:43
Subject: pgsql: Marginal performance hack: use a dedicated routine instead of
Previous:From: Tom LaneDate: 2007-04-30 00:12:08
Subject: pgsql: Marginal performance hack: remove the loop that used to be needed

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