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

Started by Tom Laneover 14 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

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(-)