On 10 May 2016 at 13:38, Kouhei Kaigai <kai...@ak.jp.nec.com> wrote: > My concern about ExecProcNode is, it is constructed with a large switch > ... case statement. It involves tons of comparison operation at run-time. > If we replace this switch ... case by function pointer, probably, it make > performance improvement. Especially, OLAP workloads that process large > amount of rows.
I imagined that any decent compiler would have built the code to use jump tables for this. I have to say that I've never checked to make sure though. -- David Rowley http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers