• Andres Freund's avatar
    Add likely/unlikely() branch hint macros. · aa3ca5e3
    Andres Freund authored
    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>
    aa3ca5e3
c.h 33.3 KB