pgsql: Inline TransactionIdFollows/Precedes[OrEquals]() - Mailing list pgsql-committers

From Melanie Plageman
Subject pgsql: Inline TransactionIdFollows/Precedes[OrEquals]()
Date
Msg-id E1v8mDn-001iJ4-1P@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Inline TransactionIdFollows/Precedes[OrEquals]()

These functions appeared prominently in a profile of a patch that sets
the visibility map on-access. Inline them to remove call overhead and
make them cheaper to use in hot paths.

Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Kirill Reshke <reshkekirill@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/2wk7jo4m4qwh5sn33pfgerdjfujebbccsmmlownybddbh6nawl%40mdyyqpqzxjek

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/43b05b38ea4d03a0ee9a09f08a9559bc0ca6d7ad

Modified Files
--------------
src/backend/access/transam/transam.c | 64 ---------------------------------
src/include/access/transam.h         | 70 +++++++++++++++++++++++++++++++++---
2 files changed, 66 insertions(+), 68 deletions(-)


pgsql-committers by date:

Previous
From: Melanie Plageman
Date:
Subject: pgsql: Add helper for freeze determination to heap_page_prune_and_freez
Next
From: Melanie Plageman
Date:
Subject: pgsql: Make heap_page_is_all_visible independent of LVRelState