pgsql: Optimize memory access in GetRunningTransactionData()

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема pgsql: Optimize memory access in GetRunningTransactionData()
Дата
Msg-id E1sP9Hk-000DNB-Cz@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Optimize memory access in GetRunningTransactionData()

e85662df44 made GetRunningTransactionData() calculate the oldest running
transaction id within the current database.  This commit optimized this
calculation by performing a cheap transaction id comparison before fetching
the process database id, while the latter could cause extra cache misses.

Reported-by: Noah Misch
Discussion: https://postgr.es/m/20240630231816.bf.nmisch%40google.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6897f0ec024582a570868939d3f34a6853374723

Modified Files
--------------
src/backend/storage/ipc/procarray.c | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: David Rowley
Дата:
Сообщение: pgsql: Remove incorrect Asserts in buffile.c
Следующее
От: Alexander Korotkov
Дата:
Сообщение: pgsql: Fix typo in GetRunningTransactionData()