Optimize memory access in GetRunningTransactionData()
Alexander Korotkov <akorotkov@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/ipc/procarray.c | modified | +11 −6 |
Discussion
- collect_corrupt_items_vacuum.patch 27 messages · 2022-04-04 → 2024-08-14