• Tom Lane's avatar
    Replace the switching function ExecEvalExpr() with a macro that jumps · c1352052
    Tom Lane authored
    directly to the appropriate per-node execution function, using a function
    pointer stored by ExecInitExpr.  This speeds things up by eliminating one
    level of function call.  The function-pointer technique also enables further
    small improvements such as only making one-time tests once (and then
    changing the function pointer).  Overall this seems to gain about 10%
    on evaluation of simple expressions, which isn't earthshaking but seems
    a worthwhile gain for a relatively small hack.  Per recent discussion
    on pghackers.
    c1352052
nodeHash.c 18.1 KB