Optimize SnapBuildPurgeOlderTxn to purge committed xids in-place

Поиск
Список
Период
Сортировка
От Neil Chen
Тема Optimize SnapBuildPurgeOlderTxn to purge committed xids in-place
Дата
Msg-id CAA3qoJm+R03tzF_2p4Syck4Nwx1dGBsusN25frGx4NGnT_ck2Q@mail.gmail.com
обсуждение исходный текст
Ответы Re: Optimize SnapBuildPurgeOlderTxn to purge committed xids in-place
Список pgsql-hackers
Hi all,

While reading the code of SnapBuildPurgeOlderTxn, I noticed the TODO comment suggesting a neater algorithm instead of using a temporary workspace for copying committed xids.

I’ve implemented an in-place purge approach for the committed xid array to eliminate the overhead of memory allocation and data copying.
 
Tested locally without issues—happy to hear your thoughts.
Вложения

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