forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitaa3ca5e
committed
Add likely/unlikely() branch hint macros.
These are useful for very hot code paths. Because it's easy to guesswrongly 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 forlater.Discussion: <20160727004333.r3e2k2y6fvk2ntup@alap3.anarazel.de>1 parent32fdf42 commitaa3ca5e
1 file changed
+16
-0
lines changedLines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
939 | 939 |
| |
940 | 940 |
| |
941 | 941 |
| |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
942 | 958 |
| |
943 | 959 |
| |
944 | 960 |
| |
|
0 commit comments
Comments
(0)