Обсуждение: pgsql: Inline TransactionIdFollows/Precedes[OrEquals]()

Поиск
Список
Период
Сортировка

pgsql: Inline TransactionIdFollows/Precedes[OrEquals]()

От
Melanie Plageman
Дата:
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(-)