Inline TransactionIdFollows/Precedes[OrEquals]()

Melanie Plageman <melanieplageman@gmail.com>

Commit: 43b05b38ea4d03a0ee9a09f08a9559bc0ca6d7ad
Author: Melanie Plageman <melanieplageman@gmail.com>
Date: 2025-10-14T21:03:48Z
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

Files

PathChange+/−
src/backend/access/transam/transam.c modified +0 −64
src/include/access/transam.h modified +66 −4

Discussion