diff options
author | Andres Freund <andres@anarazel.de> | 2016-10-14 16:05:30 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2016-10-14 16:05:30 -0700 |
commit | aa3ca5e3dd60bf0b992b74f955378f28e601292a (patch) | |
tree | 1a3c9caaa2d41d2caad31fc638976a299442ca4f /src/backend/executor/nodeSubplan.c | |
parent | 32fdf42cf546f613aab9ca98935c40a046187fa9 (diff) | |
download | postgresql-aa3ca5e3dd60bf0b992b74f955378f28e601292a.tar.gz postgresql-aa3ca5e3dd60bf0b992b74f955378f28e601292a.zip |
Add likely/unlikely() branch hint macros.
These are useful for very hot code paths. Because it's easy to guess
wrongly about likelihood, and because such likelihoods change over time,
they should be used sparingly.
Past tests have shown it'd be a good idea to use them in some places,
e.g. in error checks around ereports that ERROR out, but that's work for
later.
Discussion: <20160727004333.r3e2k2y6fvk2ntup@alap3.anarazel.de>
Diffstat (limited to 'src/backend/executor/nodeSubplan.c')
0 files changed, 0 insertions, 0 deletions