pgsql: Convert eval_const_expressions's long series of IsA tests into a

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Convert eval_const_expressions's long series of IsA tests into a
Date: 2011-11-28 19:22:03
Message-ID: E1RV6mB-00064L-Hm@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Convert eval_const_expressions's long series of IsA tests into a switch.

This function has now grown enough cases that a switch seems appropriate.
This results in a measurable speed improvement on some platforms, and
should certainly not hurt. The code's in need of a pgindent run now,
though.

Andres Freund

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/a04161f2eab55f72b3c3dba9baed0ec09e7f633f

Modified Files
--------------
src/backend/optimizer/util/clauses.c | 56 +++++++++++++++++++---------------
1 files changed, 31 insertions(+), 25 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2011-11-28 21:26:40 Re: pgsql: Make pg_dumpall build with the right object files under MSVC.
Previous Message Dave Page 2011-11-28 19:09:58 stackbuilder - wizard: Don't try to use a download counter unless the