• Robert Haas's avatar
    Various micro-optimizations for GetSnapshopData(). · 0d76b60d
    Robert Haas authored
    Heikki Linnakangas had the idea of rearranging GetSnapshotData to
    avoid checking for sub-XIDs when no top-level XID is present.  This
    patch does that plus further a bit of further, related rearrangement.
    Benchmarking show a significant improvement on unlogged tables at
    higher concurrency levels, and mostly indifferent result on permanent
    tables (which are presumably bottlenecked elsewhere).  Most of the
    benefit seems to come from using the new NormalTransactionIdPrecedes()
    macro rather than the function call TransactionIdPrecedes().
    0d76b60d
transam.h 6.02 KB