forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc135205
committed
Replace the switching function ExecEvalExpr() with a macro that jumps
directly to the appropriate per-node execution function, using a functionpointer stored by ExecInitExpr. This speeds things up by eliminating onelevel of function call. The function-pointer technique also enables furthersmall improvements such as only making one-time tests once (and thenchanging the function pointer). Overall this seems to gain about 10%on evaluation of simple expressions, which isn't earthshaking but seemsa worthwhile gain for a relatively small hack. Per recent discussionon pghackers.1 parent2c7e473 commitc135205
File tree
7 files changed
+416
-306
lines changed- src
- backend/executor
- include
- executor
- nodes
7 files changed
+416
-306
lines changed0 commit comments
Comments
(0)