From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Add likely/unlikely() branch hint macros. |
Date: | 2016-10-14 23:21:28 |
Message-ID: | [email protected] |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(dot)r3e2k2y6fvk2ntup(at)alap3(dot)anarazel(dot)de>
Branch
------
master
Modified Files
--------------
src/include/c.h | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2016-10-15 00:28:12 | pgsql: Use more efficient hashtable for execGrouping.c to speed up hash |
Previous Message | Tatsuo Ishii | 2016-10-14 21:50:20 | Re: [COMMITTERS] pgsql: Remove spurious word. |